...
Click on API permissions on the left
Click Add a permission
Select Microsoft Graph
Then choose application permissions.
In the Select permissions section, tick the checkboxes search for and select the permissions mentioned in the Graph documentation of the operation you want to use. Use the principle of least privilege (grant only the absolutely required permissions, no more). In the Graph documentation, the permission of least privilege which still grants the required permissions is mentioned first.below:
User.ReadWrite.All
Group.ReadWrite.All
Organization.Read.All
Application.ReadWrite.All
Directory.ReadWrite.All
Finalize the permission settings by clicking Add permissions and then Grant admin consent (if you selected permissions that require admin consent). Note that if you are not an admin, you won’t be able to complete the last step yourself, but need to ask your admin friend to click on the button for you.
...