list_user_roles
This API lists all the roles associated with a specified user.
To find a user name, use the list_users API. To change the roles for a user, use the set_user_roles API. To make other changes to a user's account, use the update_user API.
Note: You must have appropriate permissions to user the set_user_roles and
update_user APIs.
This API is available in Guardium V10.1.4 and later.
REST API syntax
This API is available as a REST service with the
GET
method. Call this API as follows:
GET https://[Guardium hostname or IP address]:8443/restAPI/userRole
GuardAPI syntax
list_user_roles parameter=value
Parameters
Parameter | Value type | Description |
---|---|---|
userName | String | Required. The name of the user. |
Examples
To list the roles for user Fred McDerf:
grdapi list_user_roles userName="Fred McDerf"
Sample output:
ID=20001 Roles of User: Fred McDerf admin dba diag cli ok