Claude Platform Docs

RBAC 角色

列出 RBAC 角色
RbacRoleListPage beta().organization().rbacRoles().list(params = RbacRoleListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/rbac_roles

列出组织中的 RBAC 角色。

获取 RBAC 角色
BetaRbacRole beta().organization().rbacRoles().retrieve(params = RbacRoleRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/rbac_roles/{rbac_role_id}

按 ID 检索 RBAC 角色。

Models
class BetaRbacRole { type = "rbac_role"; id; createdAt; /* 3 more */ }
JsonValue type = "rbac_role"

Object type.

For RBAC Roles, this is always "rbac_role".

String id

ID of the RBAC Role.

LocalDateTime createdAt

RFC 3339 datetime string indicating when the RBAC Role was created.

formatdate-time
String displayName

Name of the RBAC Role. For a role created by Anthropic, this name can differ from the label claude.ai shows, and Anthropic may change the name. To keep a lasting reference to a role, store its id.

LocalDateTime updatedAt

RFC 3339 datetime string indicating when the RBAC Role was last updated.

formatdate-time
String name⁠Deprecated

Deprecated: use display_name instead. Name of the RBAC Role; always the same value as display_name.

Use `display_name` instead; `name` always has the same value.

RBAC 角色权限

列出 RBAC 角色权限
PermissionListPage beta().organization().rbacRoles().permissions().list(params = PermissionListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/rbac_roles/{rbac_role_id}/permissions

列出 RBAC 角色授予的权限。