PME tenant Web App authentication/authorization through Microsoft tenant app registration

Yuchen Tang 0 Reputation points Microsoft Employee
2024-06-19T03:51:06.8733333+00:00

Hi there,

I have a web app deployed in Microsoft tenant. And I have a service principal and app registration in Microsoft tenant with several app roles and api permissions like below:

User's imageUser's image And I have assigned those roles to a lot of users, groups and applications in Microsoft tenant. The app registration has been setup in web app authentication as an identity provider. And I could see claims in my app like below (response from /.auth/me):

User's image Now we are asked to migrate our web app to PME tenant. We recreated the web app and deployed the app with the same code in PME tenant subscription. And we created a new app registration and service principal in PME tenant and setup multi-tenant to allow users in Microsoft tenant to login our app in PME by their microsoft.com user account. The authentication settings are like below:

User's image

app registration in PME tenant:User's image

And now I could login my app deployed in PME successfully with my microsoft.com account. However, the problem is that all the app roles are missing in the token:

User's image

My app’s users and groups all exist in the Microsoft tenant, and it’s not possible for me to set up these roles again in the PME tenant. So, can I use the app registration in the Microsoft tenant as my authentication/authorization provider in the PME web app? This way, I can continue to use the app roles and API permissions of this Microsoft tenant’s app registration.

Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,147 questions
0 comments No comments
{count} votes