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.
Update group role assignment
Set a role the group grants.
- Without environment, this sets the group’s organization role.
- With environment, it sets the group’s role in that environment.
A group has at most one organization role and one role per environment, so this replaces any existing role there.
You can’t give a group an organization role with permissions you don’t hold. Members immediately gain the new access level.
cURL request example
Path Parameters
- organizationIdrequired, string
Identifies the Redox organization that you're operating in or on behalf of.
- groupIdrequired, string
Contains the unique identifier of the group.
Request Body Schema
- rolerequired, object
- idrequired, string
Contains the unique identifier of the role.
- environmentnullable, object
- idrequired, string
Identifies the environment the role applies to.
Contains the role to grant. Omit environment, or set it to null, for an organization role assignment.
- 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
- assignmentobject
Contains the stored organization or environment role assignment.
- idstring
Contains the unique identifier of the role assignment itself, not of the role.
- groupstring
Contains the unique identifier of the group.
- rolestring
Contains the unique identifier of the assigned role, such as Admin or Engineer.
- environmentnullable, string
Contains the unique identifier of the environment, or
nullif describing an organization role assignment.