Authorize Context Sync in corporate Microsoft 365 / Azure settings#

Context Sync is ready to be connected to any supported email server out of the box.

Similarly to Context Panel installed for users’ mail accounts, it is a server app that requires specific server-side permissions to run for individual users.

Specifically, security policies configuration established in a company’s Microsoft 365 / Azure infrastructure should explicitly allow the app to run. That can be ensured by the local administrator through Microsoft 365 Admin center and Azure Active Directory.

This troubleshooting article addresses the three common issues which may prevent Context Sync functioning on the server side.

I. Check your corporate firewall configuration#

See Configure the corporate firewall to get the solution running for complete information on how to do that.

II. Adjust Azure server Enterprise Applications configuration#

  1. Log in to the Azure management portal with admin credentials.

  2. Click on All services in the menu.

  3. Select the directory you are using for the Revenue Grid server app.

  4. Click on the Enterprise applications tab.

  5. Select the application from the list of applications associated with this directory.

  6. Click the Properties tab.

  7. Change the Enabled for users to sign-in? toggle to Yes.

    ../../../../_images/config.png
  8. It is also recommended (but not required) to enable the User assignment required? toggle; this allows users to authorize Context Sync independently from the admin.

    ../../../../_images/recommended.png
  9. Click the Save button at the top of the page.

  10. In addition, check whether the Revenue Grid application with the ID indicated in the error notification you got is on the list of applications (added/allow-listed for the users to be assigned).

III. To resolve the “You can’t access this application” error on users authentication using a service account#

If you get a status code AADSTS90094 or an error notification containing the message:

Revenue Grid needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it.

you need to adjust your Microsoft 365 settings to allow users to sign in to apps like Context Sync.

Why does this error occur?#

The most common cause is when the end users have no permission to confirm OAuth consent screens for an application, unless they have Admin rights within your Microsoft 365 tenant.

Enterprise apps like Revenue Grid use OAuth as a more secure way to authorize scoped access to your Microsoft 365 tenant email and calendar data with a username and password.

Learn more about service principals and Enterprise app permissions here.

Additional Microsoft articles for your reference#