How to fix error AADSTS50011 the redirect URI does not match

Gavin Renn 0 Reputation points
2024-07-12T18:25:35.4766667+00:00

So a few users in my company are having issues opening attachments in OWA, and will get the following error.

User's image

I'm not sure how to go about correcting this. I followed the link to the documentation but it wasn't super helpful. All the guides I see say to go to Authentication under app registration, but the problem is, there isn't one. It's Office 365 Exchange Online, so that option isn't available.

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,096 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,272 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,070 questions
{count} votes

2 answers

Sort by: Most helpful
  1. James Hamil 25,081 Reputation points Microsoft Employee
    2024-07-15T18:24:18.1066667+00:00

    Hi @Gavin Renn , can you please follow this thread and let me know your results?

    "The reply URL needs to be registered in the Azure Portal to create the connection to the application. Go to Azure Active Directory > App Registrations > My App > Authentication > and configure the URL that the user should be directed to after sign in. The reply URL in the portal needs to match exactly what is configured in the application code. For example, https and http register differently, and a mismatch would cause this error. The application ID/Client ID and tenant IDs also need to match in both places."

    0 comments No comments

  2. Joan Hua-MSFT 2,635 Reputation points Microsoft Vendor
    2024-07-16T03:10:31.8433333+00:00

    Hi @Gavin Renn

    Welcome to our forum!

    For the error AADSTS50011, i found that: This error occurs if the redirect URI (reply URL) configured in the application (code) and the Microsoft Entra app registration don't match. Please refer the article and try the following steps:User's image In addition, as i know, incomplete Outlook identity authentication will often cause errors, two-factor authentication is usually required, therefore, it is recommended that you follow this article to turn on two-step verification.User's image

    Hope it helps! 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  

    Note: Please follow the steps in our [documentation] to enable e-mail notifications if you want to receive the related email notification for this thread. 


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.