Get User Roles
get_user_rolesRetrieve roles assigned to a user, with optional filtering by project or environment.
Instructions
Get roles assigned to a specific user, optionally scoped to a project or environment.
Args:
userID (string, required): The user ID
projectID (string, optional): Scope to a specific project
environmentID (string, optional): Scope to a specific environment
Returns: Role assignments for the user.
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": {
"userID": "<userID>"
},
"name": "get_user_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userID | Yes | The user ID | |
| projectID | No | Optional project scope filter | |
| environmentID | No | Optional environment scope filter |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| message | No |