Hi Nauman Afzal,
Thanks for reaching out to Microsoft!
Microsoft Graph requires admin consent for directory-wide read operations. Therefore, I suggest using two separate Azure AD app registrations:
- App1: For user login with minimal permissions, avoiding the need for admin consent. This will allow normal users to sign in.
- App2: For admin interactions with the "
GroupMember.Read.All"
permission, requiring admin consent.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.