Find User Tenant

Attempts to find the user's tenant based off the specified application and email. Depending on the number of tenants that are found for the given email and application one of the following operations will be taken.

  1. If no tenants are found then a 404 response is returned with a user_not_found error code.
  2. If exactly one tenant is found then this API will return a TENANT_FOUND result with a redirect URL pointing towards the tenant's login URL.
  3. If more than one tenant is found then this API will send a tenant discovery email to the specified email address which will allow the user to select the tenant they want to log in to.

NOTE: This API will only match against users that are active and have a verified email. Also, users belonging to tenants of type GLOBAL are never matched against.

Required Permissions

Below is the list of required permissions needed to interact with this API. For each permission the allowed permission boundaries are also specified.

PermissionBoundaryDescription
tenant-discovery-workflow:executeApplicationThe subject can perform this operation for requests associated to the application that the subject belongs to.
Language
Authorization
Bearer
JWT
URL
Click Try It! to start a request and see the response here!