revoke_privs
Revokes the privileges from an existing Enterprise Manager user or Enterprise Manager role.
Format
emcli revoke_privs -name="username|rolename" [-privilege="name[;secure-resource-details]]" [-separator=privilege="sep_string"] [-subseparator=privilege="subsep_string"] [ ] indicates that the parameter is optional
Options
-
name
User name or role name from which privileges will be revoked.
-
privilege
Privilege to grant to this administrator. You can specify this option more than once. The original administrator privileges will be revoked. Specify <secure_resource_details> as:
resource_guid|[resource_column_name1=resource_column_value1[:resource_column_name2=resource_column_value2]..]"
-
separator
Specify a string delimiter to use between name-value pairs for the value of the -privilege option. The default separator delimiter is a semi-colon ( ; ).
-
subseparator
Specify a string delimiter to use between name and value in each name-value pair for the value of the -privilege option. The default subseparator delimiter is a colon ( : ).
Examples
Example 1
For user1, This example revokes full control of the jobs with ID 923470234ABCDFE23018494753091111, and revokes full control on the target host1.example.com:host:
emcli revoke_privs -name="user1" -privilege="FULL_JOB;923470234ABCDFE23018494753091111" -privilege="FULL_TARGET;host1.example.com:host"
Example 2
This example revokes the target privileges from Enterprise Manager role Role1:
emcli revoke_privs -name="Role1" -privilege="FULL_TARGET;host1.example.com:host"