- Only returns users with access to the requested resource
- Auto-expands
roles,permissions, andgroups— noexpandparameter needed - Scopes all returned roles and permissions to the requested resource
- Also includes workspace-level or org-level roles alongside resource-scoped ones
resource_type values for the connected provider.
Authentication
RequiresAuthorization: Basic {base64_encoded_api_key} and x-account-id: {account_id}. See authentication.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
resource_type | string | Yes | The type of resource to query. Use values from List Resource Types. |
resource_id | string | Yes | The ID of the resource to query |
fields | string | No | Comma-separated list of fields to include |
next | string | No | Cursor token for the next page |
expand | string | No | Has no effect — roles, groups, and permissions are always auto-expanded on this endpoint |
raw | boolean | No | Include raw provider response |
proxy | object | No | Additional headers to pass through to the provider |
Response
Returns a paginated list ofIamUser objects. The same schema as List Users, but with roles, groups, and permissions always populated and scoped to the requested resource.
Example
- cURL
- TypeScript
- Python
Example Response
Errors
| Status | Meaning |
|---|---|
| 400 | Missing resource_type or resource_id |
| 401 | Unauthorized — invalid or missing API key |
| 404 | Resource not found |
| 422 | Provider does not support this endpoint |