List users

GET /api/service/users

List all the users defined in Atlan.

Query parameters

  • limit integer(int32)

    Maximum number of records to be returned.

  • offset integer(int32)

    Starting point for records to return, for paging.

  • sort string

    Property by which to sort the records.

    Values are createdTimestamp, firstName, username, or email.

  • count boolean

    Whether to return the total count of records or not. If set to false both totalRecord and filterRecord will return 0.

    Default value is true.

  • filter object

    Filter data by specifying filters based on RQL

Responses

GET /api/service/users
curl \
 -X GET https://tenant.atlan.com/api/service/users \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response example (200)
{
  "totalRecord": 3,
  "filterRecord": 3,
  "records": [
    {
      "id": "9cdc2c2e-6d60-448c-a083-0f4a295499ea",
      "username": "jsmith",
      "firstName": "Jane",
      "lastName": "Smith",
      "email": "jsmith@example.com",
      "emailVerified": true,
      "enabled": true,
      "attributes": {
        "invitedAt": [
          "2022-02-23T21:51:43Z"
        ],
        "invitedBy": [
          "jsmith"
        ],
        "invitedByName": [
          "Jane Smith"
        ],
        "designation": [
          ""
        ]
      },
      "groupCount": 1,
      "decentralizedRoles": [
        {
          "roleId": "90af78ec-998f-4939-aa23-2159c7312b6e",
          "level": "connection",
          "privilege": "admin"
        }
      ],
      "defaultRoles": [
        "offline_access",
        "uma_authorization",
        "$guest"
      ],
      "roles": [
        "string"
      ],
      "personas": [
        {
          "id": "3f94d413-ae47-4ddb-a5a9-1b286e7eb04e",
          "name": "Base",
          "displayName": "Base"
        }
      ],
      "purposes": [
        {
          "id": "12846d83-d117-42e1-a0fd-823dfa75e876",
          "name": "Restricted Protection"
        }
      ],
      "createdTimestamp": 1645653103555,
      "lastLoginTime": 42,
      "loginEvents": [
        {
          "clientId": "atlan-frontend",
          "details": {},
          "ipAddress": "10.110.9.149",
          "realmId": "default",
          "sessionId": "ceb0cd29-fd3d-40ca-a3b2-a83c6e00cd5d",
          "time": 1651679584113,
          "type": "LOGIN",
          "userId": "53954c95-47f8-49b3-9812-23eb40fb07cc"
        }
      ],
      "adminEvents": [
        {
          "authDetails": {
            "clientId": "2a292d66-65b7-4293-a96d-42e6378e2dc0",
            "ipAddress": "10.100.0.185",
            "realmId": "default",
            "userId": "9cdc2c2e-6d60-448c-a083-0f4a295499ea"
          },
          "operationType": "CREATE",
          "realmId": "default",
          "representation": "string",
          "resourcePath": "users/ef8abf95-f3b9-475f-aef0-8477ed1a49f1/role-mappings/realm",
          "resourceType": "REALM_ROLE_MAPPING",
          "time": 1645653103555
        }
      ]
    }
  ]
}