List the identity roles an administrator role may grant in an Environment
/portal/v1/accounts/{accountSlug}/admin-roles/{adminRoleId}/grantable-rolesThe IDs of the identity roles that this administrator role may grant in the Environment named by the required environmentId query parameter. Only editing a role's grantable roles reads this, so it requires admin_governance.manage, not view. Answers 404 when the administrator role or the Environment is not in the Account. The response is an unpaginated { items } array of role ID strings.
Authentication
Bearer Token
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
Path Parameters
accountSlugstring Required The Account's slug. An unknown one answers 404.
adminRoleIdstring Required Query Parameters
environmentIdstring Required Environment whose grantable roles to read
Responses
application/json
items *string[]
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
curl -X GET "https://auth.canopy-io.com/portal/v1/accounts/value/admin-roles/value/grantable-roles?environmentId=value" \ -H "Authorization: Bearer $CANOPY_TOKEN"
{ "items": [ "string" ] }
Tell us how we can improve this guide.