Skip to Content
SeyloDocs

List a person's grants

GET
/api/v1/grants.listByUser

Lists every grant one person holds, with project and service names.

Needs users.view, which owners and admins hold. Available to MCP clients and the assistant.

Authorization

cookieseylo_session<token>

Query Parameters

userId*string

Panel-issued id.

Match^[a-z0-9]{16}$

Response Body

Success.

application/json
  1. response
grants*array<>
Example Request
curl -X GET 'https://example.com/api/v1/grants.listByUser?userId=string'
Example Response
{  "grants": [    {      "id": "string",      "userId": "string",      "scopeType": "project",      "scopeId": "string",      "scopeName": "string",      "projectId": "string",      "actions": [        "string"      ],      "createdBy": "string",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ]}