It is possible for a JWT application to act on behalf of another user by leveraging theDocumentation Index
Fetch the complete documentation index at: https://developer.box.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
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.
