Get an agent's access control list Added in 9.5.0

GET /api/agent_builder/agents/{id}/access_control

Spaces method and path for this operation:

get /s/{space_id}/api/agent_builder/agents/{id}/access_control

Refer to Spaces for more information.

Get the access control for a specific agent. Callers without permission to manage access control receive permissions.update_access_control: false and only their own entry. To learn more about agents, refer to the agents documentation.

[Required authorization] Route required privileges: agentBuilder:read.

Path parameters

  • id string Required

    The unique identifier of the agent whose access control to retrieve.

Responses

  • 200 application/json

    Indicates a successful response

  • 404 application/json

    Not Found — no agent with this ID is visible to the caller. Matches the existing agentNotFound shape, so unprivileged callers cannot probe for hidden agents.

GET /api/agent_builder/agents/{id}/access_control
curl \
  -X GET "${KIBANA_URL}/api/agent_builder/agents/{id}/access_control" \
  -H "Authorization: ApiKey ${API_KEY}"
GET kbn://api/agent_builder/agents/{id}/access_control
Response examples (200)
Example response for a caller without manage permission — only the caller's own entry is returned.
{
  "access_control": {
    "access_mode": "private",
    "entries": [
      {
        "name": "bob",
        "role": "user",
        "type": "user"
      }
    ]
  },
  "permissions": {
    "update_access_control": false
  }
}
Example response for a caller who can manage access control — the agent has two grantees.
{
  "access_control": {
    "access_mode": "private",
    "entries": [
      {
        "name": "alice",
        "role": "editor",
        "type": "user"
      },
      {
        "name": "bob",
        "role": "user",
        "type": "user"
      }
    ]
  },
  "permissions": {
    "update_access_control": true
  }
}
Response examples (404)
{
  "attributes": {
    "trace_id": "8d4f2a3b-1c5e-4a9b-9f0d-2e6c1a3d4f5e"
  },
  "error": "Not Found",
  "message": "Agent custom-agent-id not found",
  "statusCode": 404
}