A cloud-based identity and access management service for securing user authentication and resource access
Hello Sam,
It looks like you're looking to grant the minimum necessary permissions for your app registration to read basic user data from Microsoft Graph. Here’s how you can navigate that:
Identifying Necessary Permissions: Start by understanding the types of permissions your application needs. Microsoft Graph offers two main types of permissions:
- Delegated Permissions: These are used when an app is acting on behalf of a user. For example, if you're developing an application that needs to access the user’s profile or read their emails, you might want permissions like
User.Read.- Application Permissions: These are used when your app needs to access data without a signed-in user context, which typically requires admin consent. For instance, if your app needs to read user data for all users in your directory without user involvement, you would use the
User.Read.Allpermission.
- Go to **API Permissions** under your app registration in the Microsoft Entra admin center. - Choose **Add a permission**, select **Microsoft Graph**, and then select either **Delegated** or **Application permissions** based on your app’s needs. - Select the required permissions from the list and then **Add permissions**. - If needed, an admin must grant consent for the permissions you selected by clicking on **Grant admin consent for <your tenant name>**. **Documentation Reference**: You can also refer to the following documents for detailed guidance: - [Best practices for using Microsoft Graph permissions](https://learn.microsoft.com/graph/auth-v2-service?wt.mc_id=knowledgesearch_inproduct_azure-cxp-community-insider#step-1-configure-permissions-for-microsoft-graph) - [Microsoft Graph permissions reference](https://learn.microsoft.com/graph/permissions-reference) - [Delegated and application permissions](https://learn.microsoft.com/azure/active-directory/develop/v2-permissions-and-consent#openid-connect-scopes) - Application Permissions: These are used when your app needs to access data without a signed-in user context, which typically requires admin consent. For instance, if your app needs to read user data for all users in your directory without user involvement, you would use the
By following these steps and utilizing the associated permissions wisely, you can ensure that your app has just what it needs without oversharing access. Hope this helps, and let me know if you have any more questions!