Retrieve principals in an organization by ID or external ID.
Service accounts can be retrieved by ID or external ID. Users can be retrieved by ID.
Requires the caller to be logged into the target organization, or to be an admin in any of its the ancestor organizations.
A request to retrieve principals by reference.
For now, only service accounts can have an external ID.
A list of principals
{- "items": [
- {
- "id": "5yAFQRAATb7vtWGp4gvbJD3wE7VS81CGuQ7EZT"
}
], - "ignoreUnknownIds": false
}
{- "items": [
- {
- "id": "5yAFQRAATb7vtWGp4gvbJD3wE7VS81CGuQ7EZT",
- "type": "SERVICE_ACCOUNT",
- "externalId": "my.known.id",
- "name": "string",
- "description": "This is a service account used by data pipeline A-xxx",
- "createdBy": {
- "orgId": "my-org",
- "userId": "-user-string-id-aBc123"
}, - "createdTime": 1730204346000,
- "lastUpdatedTime": 1730204346000,
- "pictureUrl": "string"
}
]
}