List Roles
Retrieves a paginated list of all the roles in a domain.
Basic Parameters
Parameter | Description |
---|---|
Customer ID | Immutable ID of the Google Workspace account. |
Advanced Parameters
Parameter | Description |
---|---|
Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection. If not specified, the delegated user is the one provided in the connection. Has no effect when using an OAuth connection. NOTE: the connection details are not edited by this input. |
Example Output
{
"etag": "ETag of the resource.",
"items": [
{
"etag": "ETag of the resource.",
"isSuperAdminRole": false,
"isSystemRole": false,
"kind": "admin#directory#role",
"roleDescription": "A short description of the role.",
"roleId": "ID of the role.",
"roleName": "Name of the role.",
"rolePrivileges": [
{
"privilegeName": "The name of the privilege.",
"serviceId": "The obfuscated ID of the service this privilege is for. This value is returned with [`Privileges.list()`](/admin-sdk/directory/v1/reference/privileges/list)."
}
]
}
],
"kind": "admin#directory#roles",
"nextPageToken": "string"
}
Workflow Library Example
List Roles with Google Workspace and Send Results Via Email
Preview this Workflow on desktop