Forum Discussion

ricardaskauneckas's avatar
ricardaskauneckas
Copper Contributor
Sep 30, 2024
Solved

Microsoft Entra ID App not accessible to other organisations

Hi all, I have an external PHP-based application that allows users to send emails via the Microsoft Graph API instead of SMTP which will be deprecated soon. For this, I registered an application und...
  • ricardaskauneckas's avatar
    ricardaskauneckas
    Nov 25, 2024

    kyazaferr I am very thankful for your answer. However, I was already able to solve my problem.

    It turned out to be as simple as using the wrong separator for the scope. I have used comma instead of empty space

    The error invalid_user was extremely misleading, especially since Microsoft also has an error like invalid_permission_scope (or something similar), which I would have expected in this case.

    What made this even more confusing was the fact that for private accounts, the permission scope in the URL is either ignored or handled differently, allowing them to work even with the wrong separator. However, for organizational tenants, it caused a fatal error.

    Thank you again for your informative answer!

Resources