Command Reference > pmrep Command Reference > AssignPermission
  

AssignPermission

Allows you to add, remove, or update permissions on a global object for a user, group, or the Others default group.
The AssignPermission command uses the following syntax:
AssignPermission

-o <object_type>

[-t <object_subtype>]

-n <object_name>

{-u <user_name> | -g <group_name>}

[-s <security_domain>]

-p <permission>
The following table describes pmrep AssignPermission options and arguments:
Option
Argument
Description
-o
object_type
Required. Type of the object for which you want to manage permissions. You can specify folder, label, deploymentgroup, query, or connection.
-t
object_subtype
Optional. Type of connection object or query. Not required for other object types. For more information about valid subtypes, see AssignPermission.
-n
object_name
Required. Name of the object for which you want to manage permissions. You can use special characters for the object name.
-u
user_name
Required if you do not use the -g option. Name of the user for whom you want to add, remove, or update permissions. Use the -u or -g option, not both.
-g
group_name
Name of the group for which you want to add, remove, or update permissions. Specify “Others” as the group name to change permissions for the Others default group.
Use the -u or -g option, but not both.
You can use special characters for the group name.
-s
security_domain
Required if you use LDAP authentication. Name of the security domain that the user or group belongs to. Default is Native.
-p
permission
Required. Permissions you want to add, remove, or update. You assign read, write and execute permission on a global object. Use the characters r, w, and x to assign read, write, and execute permissions.
The following table describes the object types and values to use with pmrep commands:
Object Type
Object Subtype
Query
Shared
Query
Personal
Connection
Application
Connection
FTP
Connection
Loader
Connection
Queue
Connection
Relational

Example

You can add, remove, or update permissions with the -p option.
For example, to add read and write permissions on a folder, enter the following text at the prompt:
pmrep AssignPermission -o folder -n Sales -u Admin -p rw
You can also update permissions on an object. For example, you assigned permission to read on a folder and need to include permission to write. To update permissions, enter the following text at the prompt:
pmrep AssignPermission -o folder -n Sales -u Admin -p rw
To remove all permissions, enter the following text at the prompt:
pmrep AssignPermission -o folder -n Sales -u Admin -p ""