Skip to content

Get user permissions on specific entity.

Request

Returns user's permissions with actions on a specified entity.

Security
Bearer
Path
userIdstring, (uuid)required

User ID

Example:f49d00fe-1eda-4304-ba79-a980f565281d
Bodyapplication/jsonrequired
entityIdstringrequired

Unique identifier of the entity.

Example:"4974a66b-7493-4f41-908c-58ba81093947"
entityTypestring(ScopeEntityType)required

Entity type enum.

Enum:"PROFILE""LEGAL_ENTITY""COMPANY""PNR""TRIP""EVENT""TRIP_TEMPLATE""PLATFORM"
Example:"LEGAL_ENTITY"
curl -i -X POST \
  https://api-ext-sboxmeta.partners.spotnana.com/v3/users/f49d00fe-1eda-4304-ba79-a980f565281d/entity-permissions \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "entityId": "4974a66b-7493-4f41-908c-58ba81093947",
    "entityType": "LEGAL_ENTITY"
  }'

Responses

List of permissions user has on the entity.

Bodyapplication/json
permissionsArray of objects(EntityPermission)required

List of permissions user has on the entity.

Response
{ "permissions": [ { … } ] }