openapi: 3.0.0 info: title: Auth0 Authentication actions Deprecated > Impersonation API description: Auth0 Authentication API. Endpoints for authentication and authorization using OpenID Connect, OAuth 2.0, SAML, WS-Federation, and Passwordless flows. version: 1.0.0 servers: - url: '{auth0_domain}' description: The Authentication API is served over HTTPS. variables: auth0_domain: description: Auth0 domain default: https://demo.us.auth0.com tags: - name: Deprecated > Impersonation paths: /users/{user_id}/impersonate: post: operationId: impersonate deprecated: true tags: - Deprecated > Impersonation summary: Auth0 Obtain an Impersonation URL description: Use this endpoint to obtain an impersonation URL to login as another user. Useful for troubleshooting. parameters: - name: user_id in: path required: true description: The ID of the user to impersonate. schema: type: string requestBody: content: application/json: schema: type: object properties: protocol: type: string description: 'The protocol to use against the identity provider: oauth2, samlp, wsfed, wsfed-rms.' impersonator_id: type: string description: The user_id of the impersonator. client_id: type: string description: The client_id of the client that is generating the impersonation link. additionalParameters: type: object description: This is a JSON object. You can use this to set additional parameters, like response_type, scope and state. responses: '200': description: Successful operation content: application/json: schema: type: object properties: impersonation_url: type: string description: The URL to use for impersonation. '400': $ref: '#/components/responses/BadRequest' '401': $ref: '#/components/responses/Unauthorized' '403': $ref: '#/components/responses/Forbidden' '404': $ref: '#/components/responses/NotFound' '405': $ref: '#/components/responses/MethodNotAllowed' '429': $ref: '#/components/responses/TooManyRequests' '500': $ref: '#/components/responses/InternalServerError' '501': $ref: '#/components/responses/NotImplemented' '503': $ref: '#/components/responses/ServiceUnavailable' components: responses: NotImplemented: description: Not Implemented content: application/json: schema: type: object properties: error: type: string error_description: type: string ServiceUnavailable: description: Service Unavailable content: application/json: schema: type: object properties: error: type: string error_description: type: string InternalServerError: description: Internal Server Error Unauthorized: description: Unauthorized content: application/json: schema: type: object properties: error: type: string error_description: type: string TooManyRequests: description: Too Many Requests content: application/json: schema: type: object properties: error: type: string error_description: type: string BadRequest: description: Bad Request content: application/json: schema: type: object properties: error: type: string error_description: type: string NotFound: description: Not Found content: application/json: schema: type: object properties: error: type: string error_description: type: string Forbidden: description: Forbidden content: application/json: schema: type: object properties: error: type: string error_description: type: string MethodNotAllowed: description: Method Not Allowed content: application/json: schema: type: object properties: error: type: string error_description: type: string