Grant a directory role to a user.
Grant a directory role to a user.
Authorization
bearerAuth AuthorizationBearer <token>
Access token from POST /directory/connect/token. Scope olifyapi.
In: header
Header Parameters
Olify-Tenant-Id?string
Optional tenant GUID. Directory list/get accept it when the caller is tenant-scoped.
Format
uuidRequest Body
CreatedDirectoryUserRoleGrantapplication/json
TypeScript Definitions
Use the request body type in TypeScript.
Fields required to grant a directory role to a user.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/directory/directory-user-role-grants" \ -H "Content-Type: application/json" \ -d '{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "ownerOrganizationId": "f4e37a4f-df3b-45fa-93e9-483786baa4f4", "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0", "roleId": "7382d58e-652a-4905-b7c9-bcca1e0e5391", "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b", "contextId": "84451116-c600-49e2-9c60-5b6b34fae0d6", "resourceId": "string" }'Empty