# Multi tenant application

**URL:** <https://devforum.okta.com/t/multi-tenant-application/6077>\
**Category:** Questions\
**Created:** [August 26, 2019, 11:16am UTC](https://devforum.okta.com/t/multi-tenant-application/6077 "2019-08-26T11:16:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Unkis](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Unkis](https://devforum.okta.com/u/Unkis)\
**Post date:** [August 26, 2019, 11:16am UTC](https://devforum.okta.com/t/multi-tenant-application/6077/1 "2019-08-26T11:16:32Z")

</div>

Hello,  
I have the following use case.  
I have several organizations that want to use my application (spa). The owners of these organizations must be able to register a new organization by email. Once the email has been verified and the organization has been unlocked, the owner must be able to create new users for their own organization. the username and password can be chosen freely by the owner (no email, eg Callagent1, Bob, etc.). The newly created users can now log in with the help of organization id, username and password.

how can i realize this with the help of your product? which steps do I have to take?

---

<div class="post-metadata">

**Author:** ![NAMRATA](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@NAMRATA](https://devforum.okta.com/u/NAMRATA)\
**Post date:** [August 26, 2019, 6:29pm UTC](https://devforum.okta.com/t/multi-tenant-application/6077/2 "2019-08-26T18:29:45Z")

</div>

Hi Unkis,  
Have you got the answer for this question?I am also looking for same thing.

---

<div class="post-metadata">

**Author:** ![Unkis](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Unkis](https://devforum.okta.com/u/Unkis)\
**Post date:** [August 27, 2019, 4:13am UTC](https://devforum.okta.com/t/multi-tenant-application/6077/3 "2019-08-27T04:13:08Z")

</div>

No, unfortunately no

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [September 2, 2019, 3:07am UTC](https://devforum.okta.com/t/multi-tenant-application/6077/4 "2019-09-02T03:07:55Z")

</div>

Hi @Unkis @NAMRATA

> [@Unkis](#):
>
> The owners of these organizations must be able to register a new organization by email.

The organization registration can be treated as a group. When a user registers an organization, the group will be created in your Okta tenant and he will assigned as a group administrator.

> [@Unkis](#):
>
> Once the email has been verified and the organization has been unlocked, the owner must be able to create new users for their own organization.

Group administrators are allowed, as mentioned [here](https://help.okta.com/en/prod/Content/Topics/Security/Administrators.htm), to create and manage users that are in the group they are administrating.

> [@Unkis](#):
>
> the username and password can be chosen freely by the owner (no email, eg Callagent1, Bob, etc.).

By default, the username needs to be in the format of an email. To remove this restriction, you can go in Okta administrative panel to Directory/Users \>\> Profile Editor \>\> select “Okta” from sidebar \>\> Profile \>\> click on the information icon for Username \>\> change “Format restrictions” to “None”.

If you do not see the “Format restrictions” section, it means that the self service registration option has been enabled for your account. You will need to have it disabled in order to remove the email format restriction.

To remove the restriction, please send an email to [support@okta.com](mailto:support@okta.com) and ask for the features `SELF_SERVICE_REGISTRATION` and `UD_MAP_FIELD_TO_LOGIN` to be disabled.

> [@Unkis](#):
>
> The newly created users can now log in with the help of organization id, username and password.

This operation consists of two main operations:

- authenticate the user using the username and password
- if authentication is successful, check the organization id provided by the user against the group he is part of (if they match, the user should be allowed access)

---

<div class="post-metadata">

**Author:** ![Unkis](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Unkis](https://devforum.okta.com/u/Unkis)\
**Post date:** [February 10, 2020, 7:24am UTC](https://devforum.okta.com/t/multi-tenant-application/6077/5 "2020-02-10T07:24:50Z")

</div>

Thanks a lot for your answer. i have one question more.

> This operation consists of two main operations:
> 
> - authenticate the user using the username and password
> - if authentication is successful, check the organization id provided by the user against the group he is part of (if they match, the user should be allowed access)

in the different groups can exist the user with the same username. How it schould work with “two main operations” ?

thx.

---

<div class="post-metadata">

**Author:** ![Unkis](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Unkis](https://devforum.okta.com/u/Unkis)\
**Post date:** [February 21, 2020, 5:55am UTC](https://devforum.okta.com/t/multi-tenant-application/6077/6 "2020-02-21T05:55:54Z")

</div>

any updates regarding this?

---

<div class="post-metadata">

**Author:** ![alchemist\_ubi](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/alchemist_ubi/32/1642_2.png) [@alchemist\_ubi](https://devforum.okta.com/u/alchemist_ubi)\
**Post date:** [February 23, 2020, 11:55am UTC](https://devforum.okta.com/t/multi-tenant-application/6077/7 "2020-02-23T11:55:25Z")

</div>

> [@dragos](#):
>
> The organization registration can be treated as a group. When a user registers an organization, the group will be created in your Okta tenant and he will assigned as a group administrator.

@dragos, how could I connect to an external IdP (included Okta) for a particular tenant instead?

It will allow me to have groups, users, and so on for that particular tenant.

I guess I would need some Okta tenant for my customers as well.

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [February 24, 2020, 4:05am UTC](https://devforum.okta.com/t/multi-tenant-application/6077/8 "2020-02-24T04:05:22Z")

</div>

> [@Unkis](#):
>
> in the different groups can exist the user with the same username. How it schould work with “two main operations” ?

User would need to specify the group name after authentication, which should provide uniqueness (combination of user + password and user in group membership).

> [@alchemist\_ubi](#):
>
> @dragos, how could I connect to an external IdP (included Okta) for a particular tenant instead?
> 
> It will allow me to have groups, users, and so on for that particular tenant.
> 
> I guess I would need some Okta tenant for my customers as well.

At the moment, limiting the identity provider to a particular group is not possible. The identity provider will be applied globally on the Okta organization.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 23, 2024, 10:38pm UTC](https://devforum.okta.com/t/multi-tenant-application/6077/9 "2024-01-23T22:38:21Z")

</div>

Closed on January 23, 2024, 10:38pm UTC


