Skip to main content

List Roles

Retrieves a paginated list of all the roles in a domain.

Basic Parameters

ParameterDescription
Customer IDImmutable ID of the Google Workspace account.

Advanced Parameters

ParameterDescription
Delegated User OverridePerform 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

Workflow LibraryPreview this Workflow on desktop