Warm tip: This article is reproduced from serverfault.com, please click

How to enable tenant restriction in a correct way

发布于 2020-11-18 09:19:30

How can I restrict user sign-in for a particular domain?

During the registration process, you can set your application as a single-tenant and as I understood according to the documentation it uses in the case of if your target audience is internal to your organization.. But there is not an option to specify a domain for tenancy restriction.

But I've found that you can restrict users by specifying the white list of tenants in the HTTP header Restrict-Access-To-Tenants using a proxy server.

And I can't understand what the single-tenant option is influence on? And is there any functionality provided by passport-azure-ad for tenancy restriction?

Thanks.

Questioner
Ярослав Терещук
Viewed
0
Hari Krishna 2020-12-01 01:10:17

You need to set enterprise application->User assignment required? to Yes on the Properties tab.

Then you go to Users and groups tab and add the users and groups that you want to allow to access it (internals and partners).

By default, without this setting all internal and partner users can sign in.