List Cloud Role Principals (V2)
Lists users, groups, and API keys directly bound to a Cloud ACL role.
The base URL for this API is in the following format:
https://api.cloud.zilliz.com
The endpoints on the control plane currently supports up to 20 requests per second per user per endpoint.
export BASE_URL="https://api.cloud.zilliz.com"
The authentication token should be an API key with appropriate privileges.
The role ID.
The project boundary for a predefined project role.
The page number to return. The first page is 1.
The number of items to return per page.
export TOKEN="YOUR_API_KEY"
export roleId="r-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
curl --request GET \
--url "${BASE_URL}/v2/roles/${roleId}/principals" \
--header "Authorization: Bearer ${TOKEN}" \
--header "Request-Timeout: 5" \
--header "Content-Type: application/json"
Returns a successful result or an error message.
A successful response.
The response code.
The total number of matching items.
The current page number.
The requested page size.
The principals returned on this page.
The principal type.
The principal identifier. For user type, this is the user ID (e.g., usr-xxxxxxxxxxxxxxxxxxxxxx). For apikey type, this is the API key ID (64-character hex string). For group type, this is the group ID.
The display name of the principal.
The display name of the assigning user, or a raw non-user value such as system.
The assignment time in UTC ISO 8601 format.
A failure response.
The response code.
The error message.
{
"code": 0,
"data": {
"count": 3,
"currentPage": 1,
"pageSize": 10,
"principals": [
{
"principalType": "user",
"email": "alice@example.com",
"principalName": "Alice Wang",
"assignedBy": "Bob Li",
"assignedAt": "2026-06-21T00:00:00Z"
},
{
"principalType": "group",
"groupId": "g-xxxxxxxxxxxxxx",
"principalName": "engineering",
"assignedBy": "Bob Li",
"assignedAt": "2026-06-21T00:00:00Z"
},
{
"principalType": "apikey",
"apiKeyId": "key-xxxxxxxxxxxxxx",
"principalName": "Alice's key",
"assignedBy": "system",
"assignedAt": "2026-06-21T00:00:00Z"
}
]
}
}