Getting Need admin approval after enabling "Assignment required" in azure portal

Mansi Vaishnav 40 Reputation points Microsoft Employee
2024-02-26T10:05:57.4566667+00:00

I have created a multi tenant application in azure which needs user consent for using basic user data in Microsoft tenant. The first-time users are prompted to consent. But when I enabled "Assignment required" for the enterprise application users are facing access issue as

image (2)

When I disabled the "Assignment required" again the first time users were able to access the site after giving consent.
How can I resolve this issue when I enable the Assignment required field.
I tried filling the admin consent request for this app, but currently Admin consent requests are on hold.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Marilee Turscak-MSFT 37,206 Reputation points Microsoft Employee Moderator
    2024-02-26T20:59:33.64+00:00

    Hi @Mansi Vaishnav ,

    This is expected behavior if Assignment Required is set to "Yes", but admin consent was not provided.

    This is documented in the Requesting not authorized permissions error documentation:

    Another scenario in which this error might occur is when the user assignment is required for the application, but no administrator consent was provided. In this case, the administrator must first provide administrator consent.

    To resolve this you would need to make sure the admin provides admin consent and there isn't currently another workaround.

    If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar questions.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.