identity_get_user_org_roles
Retrieves the roles assigned to the currently logged-in user within a specified organization. Use it to verify organization-level permissions.
Instructions
[DEPRECATED] Get the currently logged in user's roles.
Use these APIs instead: * /oidc/userinfo * /cloudapi/1.0.0/roles ### Access Policy | Role | Access | | ----- | ----- | | Platform operator | ✔️ | | Organization Owner | ✔️ | | Organization Member | ✔️ | | Service Account (Whitelisted Client) | ✔️ |
GET /csp/gateway/am/api/loggedin/user/orgs/{orgId}/roles
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"orgId": "<orgId>"
},
"name": "identity_get_user_org_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | Yes | (path) |