Thank you for posting this in Microsoft Q&A.
I understand that you are facing an issue related to admin approval while trying to access resources in your organization using a multi-tenant application in Microsoft Entra ID.
Enabling user.ReadAll
and delegate.ReadAll
permissions in the Azure AD application registration and providing admin consent should work, but it is important to carefully consider the permissions your application requires and only request the minimum necessary permissions.
Follow below steps to fix Need Admin Approval popup.
1.Make sure to grant tenant-wide admin consent in Enterprise apps pane.
https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/grant-admin-consent?pivots=portal#grant-tenant-wide-admin-consent-in-enterprise-apps-pane
2.Enabling app registration by users in the Microsoft Entra admin center
- Sign in to the Microsoft Entra admin center.
- In the menu on the left, go to Azure Active Directory (or Identity) > Users > User settings.
- Enable the Users can register applications option by setting the toggle button to Yes and click Save to apply your changes.
3.Allowing user consent for apps in the Microsoft Entra admin center
- Sign in to the Microsoft Entra admin center.
- Go to Azure Active Directory (or Identity) > Applications > Enterprise applications > Consent and permissions.
- Under User consent for applications, select Allow user consent for apps and click Save.
Hope this helps. Do let us know if you any further queries.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
Thanks,
Navya.