Get RBAC Role
GET/v1/organizations/rbac_roles/{rbac_role_id}
Retrieve an RBAC Role by ID.
The RBAC Roles API is available to Claude Enterprise organizations only.
Get RBAC Role
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.organization.rbacroles.RbacRole;
import com.anthropic.models.organization.rbacroles.RbacRoleRetrieveParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
RbacRole rbacRole = client.organization().rbacRoles().retrieve("rbac_role_id");
}
}Response 200
{
"id": "rbac_role_016J8xVtKpDq3Wy9ZmN2hR4s",
"created_at": "2024-10-30T23:58:27.427722Z",
"display_name": "Project Editor",
"source": {
"type": "built_in"
},
"type": "rbac_role",
"updated_at": "2024-10-30T23:58:27.427722Z"
}Returns Examples
Response 200
{
"id": "rbac_role_016J8xVtKpDq3Wy9ZmN2hR4s",
"created_at": "2024-10-30T23:58:27.427722Z",
"display_name": "Project Editor",
"source": {
"type": "built_in"
},
"type": "rbac_role",
"updated_at": "2024-10-30T23:58:27.427722Z"
}