Topic
The following error occurs when attempting to open Nintex Workflow or Forms for Office 365:
AADSTS50011: The redirect URI [Tenancy URL] specified in the request does not match the redirect URIs configured for the application '00000003-0000-0ff1-ce00-000000000000
Make sure the redirect URI sent in the request matches the one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.
Instructions
Run the following in the SharePoint Online Management Shell:
Install-Module -Name AzureAD -MinimumVersion 2.0.0.71
Connect-AzureAD
$sharePointOnlineServicePrincipal = Get-AzureADServicePrincipal -Filter "appId eq '00000003-0000-0ff1-ce00-000000000000'"
$sharePointOnlineServicePrincipal.ReplyUrls.Add("https://*.sharepoint.com/_forms/*");
Set-AzureADServicePrincipal -ObjectId $sharePointOnlineServicePrincipal.ObjectId -ReplyUrls $sharePointOnlineServicePrincipal.ReplyUrls
Additional Information
This issue is due to changes made in SharePoint Online by Microsoft in which reply URLs containing wildcards are removed, causing some redirect URLs to be missing. Microsoft provided the script above to replace the reply URL for Nintex Forms.
Microsoft has documented this issue here: https://learn.microsoft.com/en-us/troubleshoot/azure/active-directory/error-code-aadsts50011-redirect-uri-mismatch