Lister les autorisations d'un rôle RBAC
GET/v1/organizations/rbac_roles/{rbac_role_id}/permissions
Lister les autorisations accordées par un rôle RBAC.
L'API RBAC Roles est disponible uniquement pour les organisations Claude Enterprise.
Parameters
Returns
Lister les autorisations d'un rôle RBAC
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
page = anthropic.beta.organization.rbac_roles.permissions.list("rbac_role_id")
puts(page)Response 200
{
"data": [
{
"action": "use",
"resource": {
"organization_id": "3c4f5e6d-7a8b-49c0-9d1e-2f3a4b5c6d7e",
"type": "organization"
},
"type": "rbac_role_permission"
}
],
"has_more": true,
"next_page": "eyJjdXJzb3IiOiAicmJhY19yb2xlXzAxIn0"
}Returns Examples
Response 200
{
"data": [
{
"action": "use",
"resource": {
"organization_id": "3c4f5e6d-7a8b-49c0-9d1e-2f3a4b5c6d7e",
"type": "organization"
},
"type": "rbac_role_permission"
}
],
"has_more": true,
"next_page": "eyJjdXJzb3IiOiAicmJhY19yb2xlXzAxIn0"
}