...
Enter a name for the app registration e.g. “ConnectMyApps”. Select “single tenant” as the account type. Leave the “redirect uri” blank and click the “Register” button.
Once registration is complete, go to the “Overview” page for the registration and copy the client ID and tenant ID.
2) Granting permissions
Next, while still on the “Overview” page, click the “View API permissions” button.
In the next screen click “Add Permission” and choose “Application permissions”.
Search for “User” permissions and tick the “User.ReadWrite.All” permission.
Also search for “Group” permissions and tick the “Group.ReadWriteAll” permission.
Once permissions have been ticked, click the “Add Permissions” button.
...
Once back on the “Permissions” screen click “Grant admin permission” and check that the “Status” column shows the green “Granted” symbol.
...
Next, from the side menu click “Certificates and secrets” and then click the “New client secret” button.
Give the secret a name e.g. “ConnectMyApps” and set the expiry to “Never”.
Next, copy the client secret that is displayed.
Important! The secret will only be displayed once, be sure to copy it before navigating away from the screen.
...