EntraCP connects to your tenant to search for users, groups, and to get the group membership of the users. To achieve this, it needs an app registration in your tenant with the application (not delegated) permissions GroupMember.Read.All and User.Read.All.
Under “Identity”, expand “Applications” and click “App Registrations” > “New registration” > Type the following information:
Name: EntraCP
Supported account types: “Accounts in this organizational directory only (Single tenant)”
Click “Register”
Click “API permissions”
Remove the default permission.
Click “Add a permission” > Select Microsoft Graph > “Application permissions”, and select GroupMember.Read.All and User.Read.All.
Click “Grant admin consent for TenantName” > Yes
Click on “Certificates & secrets”: EntraCP supports both a certificate and a secret, choose either option depending on your needs.
m365 cli makes the registration very simple: It takes a single command to create the application, create a secret, set the permissions and grant the admin consent:
This bash script creates the application, adds a secret, sets the permissions and grants the admin consent. It can be used in Azure cloud shell or in a local shell: