latestOpenAPI 3.0.02026-08-0819201.1 MB
411f9f98c01e
tenants
Lists Tenant’s roles based on the specified Tenant Id
You need tenants.tenant.list_roles permission to access this resource
get/tenants/{tenant_id}/roles
Path parameters
tenant_idstring required
Tenant identifier
Response
OK
Example response
{
"data": {
"id": "5b4f337bff4304610483ba67",
"attributes": {
"roles": [
{
"i18n": {
"en": "Admin"
},
"role": "admin",
"permissions": [
"contracts.workspace.create",
"contracts.workspace.listAll",
"contracts.workspace.delete",
"contracts.repository.edit",
"contracts.devTeam.edit",
"global.auth_clients.create",
"global.auth_clients.get",
"global.auth_clients.edit",
"global.auth_clients.delete"
],
"scope": "contracts"
}
]
},
"relationships": {
"tenant": {
"data": {
"id": "5b4f337bff4304610483ba67"
},
"links": {
"self": "/v2/tenants/5b4f337bff4304610483ba67\""
}
}
}
},
"links": {
"self": "/v2/tenants/5b4f337bff4304610483ba67/roles"
}
}