API permissions
To obtain API permissions for the registered application, perform the following steps.
To obtain API permissions:
- Select the registered application.
- Select API permissions from left navigation panel.
- Click Add a permission. The Request API permissions panel appears.
- Click Microsoft Graph.
- Click Application permissions.
- Under DeviceManagementApps select DeviceManagementApps.ReadWrite.All and click Add permissions.

- Under Group select Group.ReadWrite.All and click Add Permission.
- Click on Grant admin consent for Account and consent to the permissions. The status will turn to Granted. Make sure the permissions are of type Application.