Редагувати

Поділитися через


Unexpected consent prompt when signing in to an application

Many applications that integrate with Microsoft Entra ID require permissions to various resources in order to run. When these resources are also integrated with Microsoft Entra ID, permission to access them is requested using the Microsoft Entra consent framework. These requests result in a consent prompt being shown the first time an application is used, which is often a one-time operation.

In certain scenarios, additional consent prompts can appear when a user attempts to sign-in. In this article, we diagnose the reason for the unexpected consent prompts showing, and how to troubleshoot.

Further prompts can be expected in various scenarios:

  • The application has been configured to require assignment. Individual user consent isn't currently supported for apps that require assignment; thus the permissions must be granted by an admin for the whole directory. If you configure an application to require assignment, be sure to also grant tenant-wide admin consent so that assigned user can sign-in.

  • The set of permissions required by the application has changed by the developer and needs to be granted again.

  • The user who originally consented to the application wasn't an administrator, and now a different (nonadmin) user is using the application for the first time.

  • The user who originally consented to the application was an administrator, but they didn't consent on-behalf of the entire organization.

  • The application is using incremental and dynamic consent to request further permissions after consent was initially granted. Incremental and dynamic consent is often used when optional features of an application require permissions beyond those required for baseline functionality.

  • Consent was revoked after being granted initially.

  • The developer has configured the application to require a consent prompt every time it's used (note: this behavior isn't best practice).

    Note

    Following Microsoft's recommendations and best practices, many organizations have disabled or limited users' permission to grant consent to apps. If an application forces users to grant consent every time they sign in, most users will be blocked from using these applications even if an administrator grants tenant-wide admin consent. If you encounter an application which is requiring user consent even after admin consent has been granted, check with the app publisher to see if they have a setting or option to stop forcing user consent on every sign in.

Tip

Steps in this article might vary slightly based on the portal you start from.

Troubleshooting steps

Compare permissions requested and granted for the applications

To ensure the permissions granted for the application are up-to-date, you can compare the permissions that are being requested by the application with the permissions already granted in the tenant.

  1. Sign in to the Microsoft Entra admin center as at least a Cloud Application Administrator.
  2. Browse to Identity > Applications > Enterprise applications > All applications.
  3. Enter the name of the existing application in the search box, and then select the application from the search results.
  4. Under Security in the left-hand navigation, choose Permissions
  5. View the list of already granted permissions from the table on the Permissions page
  6. To view the requested permissions, select the Grant admin consent button. This opens a consent prompt listing all of the requested permissions. Don't select Accept on the consent prompt unless you're sure you want to grant tenant-wide admin consent.
  7. Within the consent prompt, expand the listed permissions and compare with the table on the permissions page. If any are present in the consent prompt but not the permissions page, that permission has yet to be consented to. Unconsented permissions may be the cause for unexpected consent prompts showing for the application.

View user assignment settings

If the application requires assignment, individual users can't consent for themselves. To check if assignment is required for the application, do the following:

  1. On the application's page, Select Properties under Manage.
  2. Check to see if Assignment required? is set to Yes.
  3. If set to yes, then an admin must consent to the permissions on behalf of the entire organization.

Determining whether an individual user can consent to an application can be configured by every organization, and may differ from directory to directory. Even if every permission doesn't require admin consent by default, your organization may have disabled user consent entirely, preventing an individual user to consent for themselves for an application. To view your organization's user consent settings, do the following:

  1. Navigate to the Enterprise applications page of the Microsoft Entra admin center.
  2. Under Security, choose Consent and permissions.
  3. View the user consent settings. If set to Do not allow user consent, users are never able to consent on behalf of themselves for an application.

Next steps