See api-docs Menu

v1-v3 APIs have been deprecated

Don't worry, these APIs are deprecated, but they aren't shut off yet.

All new development with APIs should use the newest version of our API: /1. API /1 is based on RESTful principles, is secured by OAuth 2.0, and provides JSON messages, search, pagination, sorting, and filtering.

Get Users

Returns up to 100 users. Use the page and from_id parameters to page through users.

For a description of each element in the User resource, see User Resource.

Resource URL




Set this value to a user ID to return a sequence of users whose IDs start at the next sequential ID. For example, if you provide an ID value of 42, the call will return a list of up to 100 users whose IDs are greater than 42.



Set to the page number of the page of results you want to return. A “page” refers to the list of users returned by a single request. For example, a request made without this parameter value will return the first page of events. To return subsequent pages of users, set this value to 2, 3, and so forth.



Set to the status of the users you want to return. For a list of valid status values, see the status row on User Resource.



Set to true if you want the response to include any custom attributes that have been defined for each user.

Sample Response

<users type="array">
    <distinguished-name nil="true"></distinguished-name>
    <external-id nil="true"></external-id>
    <member-of nil="true"></member-of>
  <!-- clip -->
    <distinguished-name nil="true"></distinguished-name>
    <external-id nil="true"></external-id>
    <member-of nil="true"></member-of>
  <title>Unauthorized Access</title>
  <message>Your IP is not allowed to use this API, please contact your Administrator
           for more information.</message>

Sample cURL Request

Be sure to replace placeholder values surrounded by { } with actual values.

curl -u {api_key}:x -X GET

Postman Collection

Be sure to set Postman-specific environment variables indicated by {{ }}.

Download for the Users API

Have a Question?

Found a problem or a bug? Submit a support ticket.

Looking for walkthroughs or how-to guides on OneLogin's user and admin features? Check out the documentation in our Knowledge Base.

Have a product idea or request? Share it with us in our Ideas Portal.