Skip to main content
Get a list of users assigned to a role by its ID. Required Scope: Manage All, Read All, or Read Users.
External DocumentationTo learn more, visit the OneLogin documentation.

Parameters

ParameterDescription
Include UnassignedSelect to include users that are not currently assigned to the role.
NameThe name to filter by. Applies to first name, last name, username, and email fields.
PageThe page number to get results from. The value must be greater than 0.
Per PageThe maximum number of results to return per page.
Return All PagesAutomatically fetch all resources, page by page.
Role IDThe ID of the role.

Example Output

[
	{
		"id": 345,
		"name": "Joe User",
		"username": "[email protected]",
		"added_by": {
			"id": 678,
			"name": "Susan Boss"
		},
		"added_at": "2019-12-27T00:00:00Z",
		"assigned": true
	}
]

Workflow Library Example

Get Role Users with Onelogin and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop