Access control endpoints allow you to review and manage user role assignments. Organization and environment roles are managed separately. Furthermore, a user’s organizational role doesn't impact their assigned environment role, and vice versa. Learn about roles.
Generally, organization owners or admins can retrieve, assign, update, or remove role assignments. However, only organization owners can assign or remove organization roles specifically.
Assign environment role
Assign a user to the specified environment role.
A user may only have one role per environment, but if they're part of multiple environments, they can have different roles assignments in different environments.
You must be an organization owner or admin to assign user roles.
cURL request example
Path Parameters
- environmentIdrequired, string
Identifies the specific environment that you're operating in or on behalf of.
Request Body Schema
- roleobject
- idstring
Contains the uuid of the role permission.
- namestring
Contains the role's human-readable name.
- userobject
- idstring
Contains the unique identifier of the user.
- namestring
Contains the user's human-readable name.
Contains the user and the assigned role to add to the specified environment.
- metaobject
- versionstring
Lists the major and minor version number for the format of the returned payload. The payload format or shape may change between minor versions, like including additional or extended fields in later versions. We include the version data in each response so that you have the option to handle the signaled differences.
- payloadobject
Contains the payload with details about the requested environment memberships.
- successboolean
Displays the status of the request.