Introduction

This guide will cover how to utilize flow action and create/update a tenant with attributes within your application using Descope flows.

Note: This guide is mainly focussing on Tenant management on the Descope UI console using flow action. For information on how to implement the same using SDKs, please refer to Tenant Management.

Using the "Create Tenant" action.

Within Flows, Descope supports the ability to create a tenant on user sign up if there isn't a tenant already associated with that user. The flow action 'Create Tenant' has attributes like 'Tenant Name' and 'Self Provision Domains' which can now be set during tenant creation in the flows. This utilizes "{{}}" which means any dynamic values we support. Along with these two editable fields, a 'Tenant ID' field is provided in this action to have an ID corresponding to the created tenant and roles to them can also be added.


create tenant action

Once the tenant has been successfully created, depending on the flow setup, you might need to add additional actions to set up permissions or roles. For example:


example flow with create tenant action

The above example can be implemented in use cases which lets you create a tenant with options and add a user to it. The create tenant action in the flow accepts attributes like name, self provision domains etc. If the tenant already exists for the user's domain, it updates their roles or whatever seems applicable for the use case.

If you have any other questions about Descope, feel reach to reach out to us!