Register Entra application Basic application setup Create a new application and allow Web URL of http://localhost Record Application (client) ID and Directory (tenant) ID for future use.    Click Add a certificate or secret Click new secret, and create an entry with required duration and name Copy the value.   NOTE: you cannot view this value again. Allow groups for authentication restrictions To access group details the API needs Group.Read.All application permission  Select Microsoft Graph Select delegated permissions and search for group to add Group.Read.All Confirm admin consent