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.
GET
/api/agent_builder/agents/{id}/access_control
curl
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)
Get agent access control masked response example
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
}