Assign RBAC Role to Organization Member
PUT https://infrahub-api.nexgencloud.com/v1/auth/users/{user_id}/assign-roles
Assigns a specified Role-Based Access Control (RBAC) role to a member of your organization, granting them access to the resource actions permitted by the permissions and policies contained within the role. Include the ID of the user to which the RBAC role will be assigned in the path and the ID of the RBAC role in the body of the request.
- To obtain the ID of the user to which the role will be assigned, call the Retrieve Organization Details endpoint.
- To obtain the ID of the RBAC role to assign, call the List RBAC Roles endpoint.
Path parameters
user_id integer
Required
The ID of the organization member to which the role is being assigned.
Request body parameters
role_id string
Required
The ID of the RBAC role being assigned to an organization member.
Attributes
status boolean
Indicates the status of the request to assign an RBAC role to an organization member. true
indicates success, while false
indicates an error.
message string
A message describing the request to assign an RBAC role to a member.