Remove RBAC Group Member
DELETE/v1/organizations/rbac_groups/{rbac_group_id}/members/{user_id}
Remove a User from an RBAC Group. Membership of groups provisioned by an identity provider (source type "scim") cannot be modified via the API while an organization in the tenant uses SCIM provisioning.
The RBAC Groups API is available to Claude Enterprise organizations only.
Remove RBAC Group Member
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.organization.rbacgroups.members.DeletedRbacGroupMember;
import com.anthropic.models.organization.rbacgroups.members.MemberRemoveParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
MemberRemoveParams params = MemberRemoveParams.builder()
.rbacGroupId("rbac_group_id")
.userId("user_id")
.build();
DeletedRbacGroupMember deletedRbacGroupMember = client.organization().rbacGroups().members().remove(params);
}
}Response 200
{
"rbac_group_id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
"type": "rbac_group_member_deleted",
"user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
}Returns Examples
Response 200
{
"rbac_group_id": "rbac_group_012rppKaSVsmTo6NqRDXQXNF",
"type": "rbac_group_member_deleted",
"user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
}