All the users in my tenat aren't able to login to Sharepoint and Onedrive getting a redirectUriMismatchError

Stefano Branchi 20 Punti di reputazione
2025-11-03T11:45:07.3666667+00:00

Since last friday all users on my tenant cannot sign in into Sharepoint getting redirectUriMismatchError. I already contacted 365 admin and intune support team and they couldn't help me. We tried:

  • checking the subscriptions assigned to users and they are fine.

-searching for the app registration giving the error, but it's managed by Microsoft so I can't change anything

You can check the full error message in the attachment as the proof that i cannot manage the app.

Microsoft 365 e Office | SharePoint | Per il lavoro | Windows

Risposta accettata dall'autore della domanda
Nam-D 3,985 Punti di reputazione Personale Esterno Microsoft Moderatore
2025-11-05T11:14:27.9533333+00:00

Dear @Stefano Branchi,

This is the summary of your issue.

Issue:

All users on customer tenant cannot sign in into SharePoint getting redirectUriMismatchError.

Solution:

From the beginning of the GET method response, please note the id value as shown in the screenshot below. 

Immagine dell'utente

Next, update your API query as follows: 

PATCH https://graph.microsoft.com/v1.0/servicePrincipals/id

Include the following request body:  { 

  "replyUrls": [ 

    "https://tenant-*.sharepoint.com/_forms/default.aspx", 

    "https://tenant.sharepoint.com/_forms/default.aspx", 

    "https://onedrive.cloud.microsoft/_forms/default.aspx"

  ] 

} 

Immagine dell'utente

Please replace "tenant" to your tenant domain name of SharePoint.  

Finally, run the query to update the replyUrls.  Your patience and understanding are greatly appreciated.

La risposta è stata utile?

1 persona ha trovato utile questa risposta.
0 commenti Nessun commento

1 risposta aggiuntiva

Ordina per: Più utili
  1. Nam-D 3,985 Punti di reputazione Personale Esterno Microsoft Moderatore
    2025-11-03T15:45:18.8666667+00:00

    Dear @Stefano Branchi,

    Based on your description, it seems you're encountering a redirect URI mismatch error when accessing SharePoint and OneDrive. 

    To help us investigate further, could you please follow the steps below:

    1. Access Microsoft Graph Explorer via this link: https://developer.microsoft.com/en-us/graph/graph-explorer/ 

    2. Sign in using your Global Administrator account. 

    1. Once signed in, go to Modify Permissions. 
    • In the Status column, please click Consent to allow access to run queries. 
    • On my screen, I’ve already completed the consent, so the status shows Unconsent.
    1. Next, please add the following API query: 
    GET https://graph.microsoft.com/v1.0/servicePrincipals?$filter=appId eq '00000003-0000-0ff1-ce00-000000000000' 
    
    

    This should look similar to the screenshot below: 
    Immagine dell'utente

    Click Run Query. 

    1. After receiving the response, please scroll down and locate the ReplyURLs section. 
    2. Kindly take a screenshot of the ReplyURLs and send it to us via Private Message (you can find this option above your title).Immagine dell'utente

    Let us know once completed or if you encounter any issues during the process. 


    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.     

    La risposta è stata utile?


Risposta

Le risposte possono essere contrassegnate come "Accettata" dall'autore della domanda e "Consigliata" dai moderatori, in modo da consentire agli utenti di sapere che la risposta ha risolto il problema dell'autore.