Skip to content

List all users for IdP

Request

OAuth 2.0 scope:
  • okta.idps.read

Lists all the users linked to an identity provider (IdP)

Path
idpIdstringrequired

id of IdP

Example:0oa62bfdjnK55Z5x80h7
Query
qstring

Searches the records for matching value

afterstring

The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the Link response header. See Pagination and Link header.

limitinteger, [ 1 .. 200 ]

A limit on the number of objects to return

Default:20
expandstring

Expand user data

Example:expand=user
curl -i -X GET \
  'https://subdomain.okta.com/api/v1/idps/0oa62bfdjnK55Z5x80h7/users?q=string&after=string&limit=20&expand=user'

Responses

Success

Bodyapplication/json
Array [
createdstring, (date-time)(Created)read-only

Timestamp when the object was created

Example:"2016-01-03T18:15:47.000Z"
externalIdstring, <= 512 charactersread-only

Unique IdP-specific identifier for the user

Example:"saml.jackson@example.com"
idstringread-only

Unique key of the user

lastUpdatedstring, (date-time)(LastUpdated)read-only

Timestamp when the object was last updated

Example:"2016-01-03T18:15:47.000Z"
profileobject

IdP-specific profile for the user.

IdP user profiles are IdP-specific but may be customized by the Profile Editor in the Admin Console.

Note: Okta variable names have reserved characters that may conflict with the name of an IdP assertion attribute. You can use the External name to define the attribute name as defined in an IdP assertion such as a SAML attribute name.

Example:
{ "lastName": "Jackson", "subjectNameQualifier": "example.com", "subjectSpNameQualifier": "urn:federation:example", "authnContextClassRef": null, "subjectNameId": "saml.jackson@example.com", "subjectConfirmationAddress": null, "displayName": "Saml Jackson", "mobilePhone": "+1-415-555-5141", "email": "saml.jackson@example.com", "subjectNameFormat": "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress", "firstName": "Saml", "subjectSpProvidedId": null, "subjectConfirmationMethod": null }
_embeddedobjectread-only

Embedded resources related to the IdP user

]
Response
[ { "id": "00u5cl9lo7nMjHjPr0h7", "externalId": "109912936038778", "created": "2015-11-03T19:10:11.000Z", "lastUpdated": "2015-11-03T19:11:49.000Z", "profile": { … }, "_links": { … } } ]