Help

Get one directory user by id.

Get one directory user by id.

GET
/directory/directory-users/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Access token from POST /directory/connect/token. Scope olifyapi.

In: header

Path Parameters

id*string
Formatuuid

Header Parameters

Olify-Tenant-Id?string

Optional tenant GUID. Directory list/get accept it when the caller is tenant-scoped.

Formatuuid

Response Body

DirectoryUser

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/directory/directory-users/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "enabledMfaMethods": [    "Email"  ],  "lastLoginTime": "2019-08-24T14:15:22Z",  "lastLoginAuthenticationMethods": [    "Password"  ],  "failedLoginAttempts": "string",  "lockedOutUntil": "2019-08-24T14:15:22Z",  "guestOrganizationIds": [    "ddbca1f2-586a-46c0-9a7c-950da18ca6d6"  ],  "roles": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b",      "ownerOrganization": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "user": {        "ownerOrganization": {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string"        },        "userName": "string",        "person": {          "ownerOrganization": {            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",            "name": "string"          },          "firstName": "string",          "lastName": "string",          "personalNumber": "string",          "phoneNumber": "string",          "academicDegree": "string",          "scientificDegree": "string",          "isExternal": true,          "jobPosition": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"        },        "isLoginEnabled": true,        "accountType": "HumanAccount",        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "role": {        "ownerOrganization": {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string"        },        "name": "string",        "description": "string",        "permissionTypeIds": [          "523b108b-4a15-4767-bb99-b6bb5e8465fd"        ],        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"      },      "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",      "tenantName": "string",      "resourceId": "string",      "context": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "ownerOrganization": {          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string"        },        "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",        "contextId": "84451116-c600-49e2-9c60-5b6b34fae0d6",        "contextClassId": "4dfb0b7d-fb63-4041-bd34-92550edaa131",        "name": "string"      }    }  ],  "sharedConfigurations": {    "property1": [      [        null      ]    ],    "property2": [      [        null      ]    ]  },  "appTenantIds": [    "85ce1b58-b92e-4cd7-b5cb-833f573d2d75"  ],  "portalTenantIds": [    "4ea71f7f-3f7a-40cc-96a5-ca6eaab784e3"  ],  "ownerOrganization": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string"  },  "userName": "string",  "person": {    "ownerOrganization": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string"    },    "firstName": "string",    "lastName": "string",    "personalNumber": "string",    "phoneNumber": "string",    "academicDegree": "string",    "scientificDegree": "string",    "isExternal": true,    "jobPosition": "string",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"  },  "isLoginEnabled": true,  "accountType": "HumanAccount",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"}