Claude Platform Docs

Elenca autorizzazioni del ruolo RBAC

beta.organization.rbac_roles.permissions.list(rbac_role_id, **kwargs) -> SyncPageCursor[BetaRBACRolePermission]
GET/v1/organizations/rbac_roles/{rbac_role_id}/permissions

Elenca le autorizzazioni concesse da un ruolo RBAC.

L'API RBAC Roles è disponibile solo per le organizzazioni Claude Enterprise.

Parameters
rbac_role_id: str⁠Path parameter

ID of the RBAC Role.

limit: Optional[int]⁠Query parameter

Number of items to return per page.

Defaults to 20. Ranges from 1 to 1000.

default20
minimum1
maximum1000
page: Optional[str]⁠Query parameter

Optionally set to the next_page token from the previous response.

Returns
class BetaRBACRolePermission: type: "rbac_role_permission"; action; resource
Elenca autorizzazioni del ruolo RBAC
import os
from anthropic import Anthropic

client = Anthropic(
    api_key=os.environ.get(
        "ANTHROPIC_API_KEY"
    ),  # This is the default and can be omitted
)
page = client.beta.organization.rbac_roles.permissions.list(
    rbac_role_id="rbac_role_id",
)
page = page.data[0]
print(page.action)
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"
}