Nápověda

List directory user role grants.

List directory user role grants.

GET
/directory/directory-user-role-grants

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Query Parameters

$filter?string
$orderby?string
$select?string
$expand?string
$count?boolean
$top?integer

Page size. Host OData:MaxTop is 10000.

Range0 <= value <= 10000
$skip?integer
Range0 <= value

Header Parameters

Olify-Tenant-Id?string

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

Formatuuid

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/directory/directory-user-role-grants"
{  "value": [    {      "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"      }    }  ],  "count": 0}