Documentation Index
Fetch the complete documentation index at: https://help.elationhealth.com/llms.txt
Use this file to discover all available pages before exploring further.
Beta Feature: User impersonation is currently in closed beta and available to select customers only.
How it works
Include theX-On-Behalf-Of header on any API request, set to the numeric id of the user you want to act as. The request will be processed as if that user made it. If the header is omitted, the request proceeds normally under the service account identity.
Requirements
- Your token must include the
act_as_userscope and at least one resource scope (e.g.apiv2orsystem/visit_notes.write). Theact_as_userscope enables impersonation but does not grant access to data on its own. See Token Scopes for details on requesting scopes. - The user specified must belong to a practice your token is authorized for.
- The user must be active.
Finding a user’s ID
TheX-On-Behalf-Of header accepts the numeric id from the Users API, which covers both user types (physicians and office staff):
Note for physician lookups via the Physicians API: The physician object exposes two ID fields —
id (a large physician record identifier) and user_id. If looking up providers via the Physicians API, use user_id, not id.Errors
| Condition | Response |
|---|---|
Token missing act_as_user scope | 401 Token does not have act_as_user scope |
| User not found or not in an authorized practice | 401 On-behalf-of user not found or not authorized |