List users

​

Returns all users in the authenticated admin's organisation.

Authorization: Requires admin role in the organisation.

Filtering Examples:

  • userName eq "john@example.com" - Exact match
  • externalId eq "idp-user-123" - By IdP external ID
  • active eq true - Active users only

RFC Reference: RFC 7644 Section 3.4.2

Query Parameters

  • SCIM filter expression

  • 1-based index of the first result

  • Maximum number of results

Responses

  • application/scim+json
  • application/scim+json
  • application/scim+json
Request Example for get/v2/scim2/Users
curl 'https://api.consentio.co/v2/scim2/Users?startIndex=1&count=100&sortBy=userName&sortOrder=ascending' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:ListResponse"
  ],
  "totalResults": 1,
  "startIndex": 1,
  "itemsPerPage": 1,
  "Resources": [
    {
      "schemas": [
        "string"
      ],
      "id": "usr_abc123",
      "externalId": "idp-user-123",
      "userName": "string",
      "name": {
        "givenName": "string",
        "familyName": "string"
      },
      "displayName": "string",
      "emails": [
        {
          "value": "string",
          "type": "string",
          "primary": true
        }
      ],
      "active": true,
      "groups": [
        {
          "value": "string",
          "display": "string",
          "ref": "https://example.com"
        }
      ],
      "urn:consentio:params:scim:schemas:extension:User:1.0": {
        "roles": [
          "role_purchasing_manager"
        ]
      },
      "meta": {
        "resourceType": "User",
        "created": "2026-11-11T10:14:31.630Z",
        "lastModified": "2026-11-11T10:14:31.630Z",
        "location": "https://example.com"
      }
    }
  ]
}