The permissions service provides functions to get role IDs and assign roles to users. To assign a role (and its corresponding permissions) to a user, you must get the role’s id.

The GET /roles operation returns each platform role, its id, name, and description. It also lists all permissions associated with the role.

The response data returned for the GET request displays a list of role resources. Make a note of the Environment Admin role ID, which is the one to associated with the new user.