as-user header.
In this situation the user ID is the Box identifier for a user. User IDs can
found for any user via the
GET /users endpoint, which is only available to
admins, or by calling the GET /users/me endpoint with an authenticated user
session.Preconditions
The application must be configured to perform actions as users in the Developer Console. In the Configuration tab of your app, in the Additional Configuration section, select Make API calls using the as-user header.
as-user using SDKs
All of the support acting on behalf of a user using theas-user header.
Limitations
- You cannot use the
user_idof a in theas-userheader. - When impersonating a managed user, access is limited to content owned or controlled by the enterprise. Content owned by external users cannot be accessed through the
as-userheader. - The
as-userheader cannot specify the same user ID as the authenticated user. If the specified user ID matches the current user, the request fails with a403 Forbiddenerror.
