How to Authorize the Office 365 Mail Connector in Okta Workflows With a Regular User Account
Last Updated:
Overview
This article summarizes the available options for authorizing the Office 365 Mail connector with a regular O365 user account rather than a Global Administrator account. Note that all options require some initial configuration steps that must be completed by a Global Administrator account. See the Office 365 Mail Authorization documentation for additional details.
Authorizing the Office 365 Mail connector in Okta Workflows with a regular Office 365 user account requires initial configuration by a Global Administrator to prevent authorization failures. When a regular user attempts to create or authorize an Office 365 Mail connection without prior admin consent, an approval required message appears, and the connection fails. Resolve this by granting tenant-wide admin consent, enabling the admin consent workflow in Microsoft Entra ID, or allowing user consent for specific applications.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Okta Workflows
- Office 365 Mail connector
- Office 365 Mail for Okta Workflows app
- Office 365 Mail for Okta Preview app
Cause
When attempting to create or authorize an Office 365 Mail connection as a regular user account, the following message might be received, indicating that approval is required and the connection cannot be authorized:
Solution
Choose one of the following three options to authorize the Office 365 Mail connector as a regular user account.
How is consent granted on behalf of the organization using a Global Administrator account?
This first option requires a Global Administrator to grant tenant-wide admin consent when initially creating the Office 365 Mail connection. Create the connection using a Global Administrator account and accept the tenant-wide admin consent prompt, or manually grant admin consent in the Azure Portal by completing the following steps.
Create the Office 365 Mail connection using a Global Administrator account and select the consent checkbox.
- Create the Office 365 Mail connection using a Global Administrator account and select the Consent on behalf of your organization checkbox.
- Select Accept.
- Wait for the Office 365 Mail for Okta Workflows or Office 365 Mail for Okta Preview application to install in Azure Active Directory. Microsoft Entra ID grants tenant-wide admin consent, and any user can create a new connection or reauthorize an existing connection.
If admin consent does not occur when the connection is first created, the consent screen might not prompt again. A Global Administrator can grant admin consent in the Azure Portal by navigating to the enterprise applications and granting admin consent.
- Navigate to Microsoft Entra ID, and then choose Enterprise Applications.
- Select the Office 365 Mail for Okta Workflows or Office 365 Mail for Okta Preview application.
- Under the Security section, select Permissions.
- On the Admin consent tab, select the Grant admin consent for <tenantName> button.
How is consent granted by enabling the admin consent workflow in Microsoft Entra ID?
This second option allows a regular user to request admin approval for tenant-wide admin consent directly from the consent screen when creating the connection. Configure the admin consent settings in the Azure Portal, create the connection in Okta Workflows, and submit the justification request for admin approval by following these steps.
- Sign in to the Azure Portal using a Global Administrator account.
- Navigate to Microsoft Entra ID, and then choose Enterprise applications.
- Under the Security section, select Consent and permissions.
- Select Admin consent settings.
- Set Users can request admin consent to apps they are unable to consent to to Yes.
- Select Save.
- Specify the Users, Groups, and Roles that can review consent requests.
- In Okta Workflows, create a new Office 365 Mail connection using a regular Office 365 user account. At the consent screen, an Approval required message appears.
Enter a justification for requesting the application and request approval.
9. Enter a justification for requesting the application.
10. Select the Request approval button. A Request sent message appears. Okta Workflows does not create the connection at this time.
View the approval request sent message.
11. Wait for the administrator to action the request. Microsoft Entra ID sends an email notification indicating the action taken.
12. If the administrator approves the request, Microsoft Entra ID grants tenant-wide admin consent, and any user can create a new connection or reauthorize an existing connection. For additional information on enabling the admin consent workflow, see the Microsoft documentation Configure the admin consent workflow.
Grant consent by allowing consent for applications in Microsoft Entra ID.
This third option allows granting tenant-wide admin consent for specific applications with selected permissions or for all applications. Adjust the user consent settings in the Azure Portal and assign the required mail permissions to the low permission classification by following these steps.
- Sign in to the Azure Portal using a Global Administrator account.
- Navigate to Microsoft Entra ID, and then choose Enterprise applications.
- Under the Security section, select Consent and permissions.
- Select User consent settings and choose the desired User consent for applications option.
- If using the Allow user consent for apps from verified publishers, for selected permissions (Recommended) setting, add the required permissions to the Low Permission classification.
- Add
Mail.ReadWrite. - Add
Mail.ReadWrite.Shared. - Add
Mail.Send. - Add
Mail.Send.Shared. - Add
offline_access. - Select Save to save the changes. Any user can create a new connection or reauthorize an existing one and successfully grant permissions.
How is the Office 365 Mail connection made using the Client Credentials authentication scheme?
Enter a tenant of Microsoft Entra ID in all lowercase characters.
For additional information on allowing user consent for applications, see the Microsoft documentation Configure how users consent to applications.
