identity_get_user_org_service_roles
Retrieves the service roles assigned to the currently logged-in user within a specified organization, enabling role and access checks.
Instructions
[DEPRECATED] Get the currently logged in user's service roles.
Use this API instead: * /oidc/userinfo ### Access Policy | Role | Access | | ----- | ----- | | Platform operator | ✔️ | | Organization Owner | ✔️ | | Organization Member | ✔️ | | Service Account (Whitelisted Client) | ✔️ |
GET /csp/gateway/am/api/loggedin/user/orgs/{orgId}/service-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_service_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | Yes | (path) | |
| serviceDefinitionLink | No |