Claude Platform Docs

RBAC 역할 권한 목록 조회

client.Beta.Organization.RBACRoles.Permissions.List(ctx, rbacRoleID, query) (*PageCursor[BetaRBACRolePermission], error)
GET/v1/organizations/rbac_roles/{rbac_role_id}/permissions

RBAC 역할이 부여하는 권한 목록을 조회합니다.

RBAC 역할 API는 Claude Enterprise 조직에서만 사용할 수 있습니다.

Parameters
rbacRoleID string⁠Path parameter

ID of the RBAC Role.

query BetaOrganizationRBACRolePermissionListParams
Limit param.Opt[int64] OptionalQuery parameter

Number of items to return per page.

Defaults to 20. Ranges from 1 to 1000.

minimum1
maximum1000
Page param.Opt[string] OptionalQuery parameter

Optionally set to the next_page token from the previous response.

Returns
type BetaRBACRolePermission struct { Type: "rbac_role_permission"; Action; Resource }
RBAC 역할 권한 목록 조회
package main

import (
	"context"
	"fmt"

	"github.com/anthropics/anthropic-sdk-go"
	"github.com/anthropics/anthropic-sdk-go/option"
)

func main() {
	client := anthropic.NewClient(
		option.WithAPIKey("my-anthropic-api-key"),
	)
	page, err := client.Beta.Organization.RBACRoles.Permissions.List(
		context.TODO(),
		"rbac_role_id",
		anthropic.BetaOrganizationRBACRolePermissionListParams{},
	)
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", page)
}
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"
}