Create an access token that runs as a given user.
This can only be called by an authenticated admin user. It allows that admin to generate a new authentication token for the user with the given user id. That token can then be used for subsequent API calls - which are then performed as that target user.
The target user does not need to have a pre-existing API client_id/client_secret pair. And, no such credentials are created by this call.
This allows for building systems where api user authentication for an arbitrary number of users is done outside of Looker and funneled through a single 'service account' with admin permissions. Note that a new access token is generated on each call. If target users are going to be making numerous API calls in a short period then it is wise to cache this authentication token rather than call this before each of those API calls.
See 'login' for more detail on the access token and how to use it.
Calls to this endpoint may be denied by Looker (Google Cloud core).
Request
Response
200: Access token with metadata.
400: Bad Request
403: Permission Denied
404: Not Found
429: Too Many Requests
Examples
Python
https://github.com/looker-open-source/sdk-codegen/blob/main/python/tests/integration/test_methods.py |