Skip to main content

Fix a Redirect URI error when signing in to Workspace 365

Solve a sign-in error by checking and updating the Redirect URI in Microsoft Entra ID.

Introduction

You may see an error message when you sign in to Workspace 365. This error can appear when the Redirect URI in Microsoft Entra ID does not match the URL that Workspace 365 uses during sign-in.

This article helps you solve the error by adding the correct Redirect URI to the Workspace SSO App registration in Microsoft Entra ID.

This article is for people responsible for Microsoft Entra ID app registrations and solving sign-in issues.


Requirements

You need an account with permissions to manage app registrations in Microsoft Entra ID.


Instructions

Check the error message

When you sign in to Workspace 365, you see the following error message:

Sorry, but we're having trouble signing you in.

This error message means that the Reply URL, also known as the Redirect URI, does not match the URL in the Workspace SSO App registration in Microsoft Entra ID.

The error can occur after a domain name change. It can also occur after you have requested a custom URL for your Workspace 365 environment.


Add the correct Redirect URI

  1. Sign in to the Azure portal.

  2. Go to App registrations.

  3. Select the Workspace SSO App registration.

  4. Click Authentication.

  5. Click Add URI.

  6. Add the correct Redirect URI.

Use this structure:

https://customname.domainname.net/environmentname/OAuth2/HandleAuthorityResponse
  1. Click Save.

  2. Sign in to your Workspace 365 environment again.


Best practices

Always check the Redirect URI after a domain name or Workspace 365 URL change.

Use the same URL in Microsoft Entra ID as the URL that Workspace 365 uses during sign-in.


Troubleshooting

You see the message “Sorry, but we're having trouble signing you in”

What do you see?

What does it mean?

What should you do?

You see the error message during sign-in.

The Redirect URI in Microsoft Entra ID does not match the URL in the authentication request.

Add the correct Redirect URI to the Workspace SSO App registration in Microsoft Entra ID.

The error occurs after a domain name or Workspace 365 URL change.

Microsoft Entra ID is still using an old Redirect URI, or the Redirect URI is missing.

Add the new Redirect URI and save the change.


Glossary

Term

Meaning

Redirect URI

The URL Microsoft Entra ID sends the user back to after sign-in.

Reply URL

Another name for Redirect URI.

Microsoft Entra ID

The Microsoft service organisations use to manage user identities and access.

App registration

A registration in Microsoft Entra ID that allows an application to sign in through Microsoft.

Workspace SSO App registration

The app registration Workspace 365 uses for Single Sign-On.

Single Sign-On

A way of signing in that lets users access multiple applications with one account.

Did this answer your question?