Skip to main content

List Users

Lists users in your organization with pagination in most cases. A subset of users can be returned that match a supported filter expression or search criteria.

External Documentation

To learn more, visit the Okta documentation.

Basic Parameters

ParameterDescription
QueryFinds a user that matches firstName, lastName, and email properties.
Return All PagesAutomatically fetch all resources, page by page.
SearchSearches for users with a supported filtering expression for most properties based on the SCIM protocol specification.
Refer to https://developer.okta.com/docs/reference/core-okta-api/#filter for more information.
For example: status eq "ACTIVE", lastUpdated gt "yyyy-MM-dd'T'HH:mm:ss.SSSZ".

Advanced Parameters

ParameterDescription
FilterFilters users with a supported expression for a subset of properties. Refer to https://developer.okta.com/docs/reference/core-okta-api/#filter for more information. Okta recommends using the search parameter instead.
LimitSpecifies the number of results returned (maximum 200 per page).
Sort ByOnly relevant along with the 'Search' parameter. Can be any single property, for example sortBy=profile.lastName.
Sort OrderOnly relevant along with both the 'Search' and the 'Sort By' parameter.

Example Output

[
{
"id": "00ub0oNGTSWTBKOLGLNR",
"status": "ACTIVE",
"created": "2013-06-24T16:39:18.000Z",
"activated": "2013-06-24T16:39:19.000Z",
"statusChanged": "2013-06-24T16:39:19.000Z",
"lastLogin": "2013-06-24T17:39:19.000Z",
"lastUpdated": "2013-07-02T21:36:25.344Z",
"passwordChanged": "2013-07-02T21:36:25.344Z",
"profile": {
"firstName": "Isaac",
"lastName": "Brock",
"email": "isaac.brock@example.com",
"login": "isaac.brock@example.com",
"mobilePhone": "555-415-1337"
},
"credentials": {
"password": {},
"recovery_question": {
"question": "Who's a major player in the cowboy scene?"
},
"provider": {
"type": "OKTA",
"name": "OKTA"
}
},
"_links": {
"self": {
"href": "https://{yourOktaDomain}/api/v1/users/00ub0oNGTSWTBKOLGLNR"
}
}
}
]

Workflow Library Example

Get Alerts for Login Attempts of Disabled Users in Okta

Workflow LibraryPreview this Workflow on desktop