Permission

Permission

List role assignments for a user

get
/tenants/{tenantUid}/users/{tenantUserUid}/roles

Retrieves a list of all roles assigned to the specific user within the tenant.

Required access: Tenant.Admin

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
tenantUserUidstringRequired

Reference to a TenantUser.

Pattern: ^[A-Za-z0-9-_]+
Query parameters
pageNumberintegerOptional

Reference to a specific page in a result set.

pageSizeintegerOptional

The number of items per page in a result set.

sortBystringOptional

Defines which field the resource list is sorted by.

sortDirectionstring · enumOptional
ENUM Description
ASC Sort in ascending order
DESC Sort in descending order
Possible values:
Responses
200

List of tenant user role assignments

application/json
get
/tenants/{tenantUid}/users/{tenantUserUid}/roles
200

List of tenant user role assignments

Assign a role to a user

post
/tenants/{tenantUid}/users/{tenantUserUid}/roles

Assigns a new role to the user. Can be a tenant-wide role or scoped to a specific store.

Required access: Tenant.Admin

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
tenantUserUidstringRequired

Reference to a TenantUser.

Pattern: ^[A-Za-z0-9-_]+
Body

A tenantRole can be assigned at three levels:

  • Only set a tenantRoleUid in the request: The role will be assigned at tenant level
  • Set organizationUid and tenantRoleUid: The role will be assigned at organization level
  • Set storeUid and tenantRoleUid: The role will be assigned at store level

An error occurs if both storeUid and organizationUid is set in the request.

The levels are ranked this way, from top to bottom: tenant, organization, store

A permission set at higher level overrides lower level assignments.

tenantRoleUidstringRequiredPattern: ^[A-Za-z0-9-_]+
storeUidstringOptionalPattern: ^[A-Za-z0-9-_]+
organizationUidstringOptionalPattern: ^[A-Za-z0-9-_]+
Responses
post
/tenants/{tenantUid}/users/{tenantUserUid}/roles
201

Tenant user role assignment response

Get a role assignment

get
/tenants/{tenantUid}/users/{tenantUserUid}/roles/{tenantUserRoleAssignmentUid}

Retrieves details of a specific role assignment.

Required access: Tenant.Admin

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
tenantUserUidstringRequired

Reference to a TenantUser.

Pattern: ^[A-Za-z0-9-_]+
tenantUserRoleAssignmentUidstringRequired

Reference to a TenantUserRoleAssignment.

Pattern: ^[A-Za-z0-9-_]+
Responses
200

Tenant user role assignment response

application/json
get
/tenants/{tenantUid}/users/{tenantUserUid}/roles/{tenantUserRoleAssignmentUid}
200

Tenant user role assignment response

Remove a role assignment

delete
/tenants/{tenantUid}/users/{tenantUserUid}/roles/{tenantUserRoleAssignmentUid}

Removes a specific role assignment from the user.

Required access: Tenant.Admin

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
tenantUserUidstringRequired

Reference to a TenantUser.

Pattern: ^[A-Za-z0-9-_]+
tenantUserRoleAssignmentUidstringRequired

Reference to a TenantUserRoleAssignment.

Pattern: ^[A-Za-z0-9-_]+
Responses
delete
/tenants/{tenantUid}/users/{tenantUserUid}/roles/{tenantUserRoleAssignmentUid}
204

Role assignment removed

No content

List available permissions

get
/metadata/permissions

List available permissions

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Responses
200

Example response

application/json
get
/metadata/permissions
200

Example response

List tenant roles

get
/tenants/{tenantUid}/tenant-roles

List tenant roles

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Query parameters
pageNumberintegerOptional

Reference to a specific page in a result set.

pageSizeintegerOptional

The number of items per page in a result set.

sortBystringOptional

Defines which field the resource list is sorted by.

sortDirectionstring · enumOptional
ENUM Description
ASC Sort in ascending order
DESC Sort in descending order
Possible values:
Responses
200

Example response

application/json
get
/tenants/{tenantUid}/tenant-roles
200

Example response

Add new tenant role

post
/tenants/{tenantUid}/tenant-roles

Add new tenant role.

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
Body
namestringRequired
descriptionstringRequired
externalIdstringOptional
permissionsstring[]Required
tenantRoleUidstringOptionalPattern: ^[A-Za-z0-9-_]+
Responses
post
/tenants/{tenantUid}/tenant-roles
201

Example response

Get Tenant Role

get
/tenants/{tenantUid}/tenant-roles/{tenantRoleUid}

Get Tenant Role

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
tenantRoleUidstringRequired

Reference to a tenantRole.

Pattern: ^[A-Za-z0-9-_]+
Responses
200

Example response

application/json
get
/tenants/{tenantUid}/tenant-roles/{tenantRoleUid}
200

Example response

Update Tenant Role

put
/tenants/{tenantUid}/tenant-roles/{tenantRoleUid}

Update Tenant Role

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
tenantRoleUidstringRequired

Reference to a tenantRole.

Pattern: ^[A-Za-z0-9-_]+
Body
namestringOptional
descriptionstringOptional
externalIdstringOptional
permissionsstring[]Optional
Responses
200

Example response

application/json
put
/tenants/{tenantUid}/tenant-roles/{tenantRoleUid}
200

Example response

Delete Tenant Role

delete
/tenants/{tenantUid}/tenant-roles/{tenantRoleUid}

Delete Tenant Role

Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
tenantRoleUidstringRequired

Reference to a tenantRole.

Pattern: ^[A-Za-z0-9-_]+
Responses
delete
/tenants/{tenantUid}/tenant-roles/{tenantRoleUid}
204

No Content

No content

Last updated