IAM principals
List IAM principals
Changed onRequires iam.principals.read on an active principal bound to the authenticated organization. Authenticate with an active, unexpired IAM credential of type api_key. Application API keys (including legacy API keys) and provider OAuth tokens cannot authorize IAM management endpoints. Use an existing IAM credential with these permissions, or create your first management credential in the Dashboard.
Use next_cursor from the response as page_token on the next request. When next_cursor is absent, there are no more results.
get/v3/iam/principals
Request
- Base URLhttps://api.us.nylas.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
limitinteger
Maximum results per page.
page_tokenstring
Opaque next_cursor from the previous response.
resource_binding_type'organization' | 'application' | 'workspace' | 'grant'
Filter by binding type. Must be supplied with resource_binding_id.
resource_binding_idstring
Filter by binding ID. Must be supplied with resource_binding_type.
Response
OK
Example response
{
"data": [
{
"id": "9Xf3LmQa2rP7sTuV0wYzB",
"organization_id": "<NYLAS_ORGANIZATION_ID>",
"name": "Support mailbox reader",
"description": "Reads the support mailbox",
"status": "active",
"roles": [
"role_system_messages_reader"
],
"direct_permissions": [],
"resource_binding": {
"type": "grant",
"id": "<NYLAS_GRANT_ID>"
},
"created_at": 1791417600,
"updated_at": 1791417600
}
]
}Changes
- info
endpoint added
- info