acerole validate
Verifies given user roles for ACEs exists in the
/opt/mapr/conf/m7_permissions_roles_refimpl.conf
file.
This command returns true
if role exists in the
/opt/mapr/conf/m7_permissions_roles_refimpl.conf
file and false
if given role is not in the file. If the MAPR_ROLES_LIB_ENABLE_TRACE
environment
variable is set to TRUE
, the command returns also the number of users assigned
to the specified role and the number of roles in the file.
Syntax
/opt/mapr/bin/maprcli acerole validate -role <role to validate>
Parameters
Parameter | Description |
---|---|
role |
The role to validate. |
Examples
Verifies whether given role exists when the MAPR_ROLES_LIB_ENABLE_TRACE
environment variable is not set:
$ maprcli acerole validate -role Role_1
maprcli acerole validate command returned : true
Verifies whether given role exists when the MAPR_ROLES_LIB_ENABLE_TRACE
environment variable is set:
$ export MAPR_ROLES_LIB_ENABLE_TRACE=TRUE
$ echo $MAPR_ROLES_LIB_ENABLE_TRACE
TRUE
$ maprcli acerole validate -role Role_1
RoleMap: Added user 500 with role 'Role_1'
RoleMap: Added user 1000 with role 'Role_1'
RoleMap: found 2 users and 2 roles.
maprcli acerole validate command returned : true