How can I sign in for specific tenant in a azure multi-tenant application?
I have following scenario:
- A registered an Azure Application for multi-tenant scenario (Web App)
- Two App Roles “Admin” and “User”
- Two or more Azure Directories with at least one User. E.g.
- -- Mary@CompA
- -- Joe@CompB
- -- Scott@CompC
- All these user are assigned in their directory to the “Admin” app role
- Then I added Mary@CompA to the directories CompB and CompC as a guest user and assign the app role “User”
I can successfully sign in with all users to my application. All the users sign in with their own directory and have “Admin” rights.
But how can I sign in with Mary for tenant/directory CompB or CompC (with “User” rights only)?
Alternatively how can I query all the tenants/directories a user is member of. In Azure management portal, it is possible for me to switch to a directory, that i'm a member of.
I found another question that is a possible duplicate.