Azure User Impersonation does not work when User/Assignment enable on the Backend App Registration

Aniss Chohra 0 Reputation points
2023-08-31T19:57:43.1+00:00

I have two application registrations: one for the backend and one for the frontend.

On the backend App Reg, I have defined (exposed) a scope called User_impersonation like the following:

minerva_backend_scopes

On the frontend App Reg, I have added the permissions (User_impersonation) like the following:

minerva_frontend_permissions

Also on the frontend side, I enabled user/group assignment and assigned a security group; so that only the members of that security group can access/query this frontend.

minerva_frontend_group_assignment

So far, when a user queries the frontend with an access token (requested from the frontend app reg); everything works fine: the frontend app reg requests an access token from the backend and forwards the request of the user.

However, when I try to enable the user/group assignment on the backend app reg (by adding the same security group); the frontend app can no longer query the backend (User_impersonation fails); like the query times out with no reply from the backend.

Can someone help me make the User_impersonation work when the group assignment is enabled on both app regs (not only the frontend). Thanks.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
16,677 questions
{count} votes