Claude Platform Docs

RBAC 그룹 삭제

client.Beta.Organization.RBACGroups.Delete(ctx, rbacGroupID) (*BetaOrganizationRBACGroupDeleteResponse, error)
DELETE/v1/organizations/rbac_groups/{rbac_group_id}

RBAC 그룹을 삭제합니다. 테넌트의 조직이 SCIM 프로비저닝을 사용하는 동안에는 ID 공급자가 프로비저닝한 그룹(소스 유형 "scim")을 API를 통해 삭제할 수 없습니다.

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

Parameters
rbacGroupID string⁠Path parameter

ID of the RBAC Group.

Returns
type BetaOrganizationRBACGroupDeleteResponse struct { Type: "rbac_group_deleted"; ID }
Type RBACGroupDeleted

Deleted object type.

For RBAC Groups, this is always "rbac_group_deleted".

defaultrbac_group_deleted
ID string

ID of the RBAC Group.

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"),
	)
	rbacGroup, err := client.Beta.Organization.RBACGroups.Delete(context.TODO(), "rbac_group_id")
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", rbacGroup.ID)
}
Returns Examples
Response 200
{
  "id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
  "type": "rbac_group_deleted"
}