Get Roles
get_rolesLists Secret Server roles with optional paging or retrieves a single role by ID, so agents can inspect role assignments and access control.
Instructions
List Secret Server roles, or get one role by ID.
Calls GET /api/v1/roles, which has no name filter, paged by take
(default 50, capped at 500) and skip; total and hasNext show
whether more remain. With role_id, calls GET /api/v1/roles/{id}.
Secret Server REST API reference:
https://docs.delinea.com/online-help/secret-server/api-scripting/rest-api/rest-api-reference-download/index.htm
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_roles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skip | No | ||
| take | No | ||
| role_id | No | ||
| include_inactive | No |