Assignments

addAssignment

Assign a user to a role.

Use the x-epilot-org-id header to assign share roles to users in other orgs

post/v1/permissions/assignments/{userId}/{roleId}

Request

  • Base URL
    https://permissions.sls.epilot.io
  • URL
    https://permissions.sls.epilot.io/v1/permissions/assignments/{userId}/{roleId}
  • Auth
    • HTTP bearer
    • or API key in header x-epilot-org-id

Path parameters

userIdstring required

Id of a user

Example:1
roleIdstring required

Format: <organization_id>:<slug>

Example:123:owner

Response

ok

user_idstring

Id of a user

rolesRoleId[]

Example response

{
  "user_id": "1",
  "roles": [
    "123:owner"
  ]
}

Changes

No recorded changes to this operation across all 4 revisions of this API.