msgraph-sample-phpapp icon indicating copy to clipboard operation
msgraph-sample-phpapp copied to clipboard

AADSTS50194: Application '3b79e557-4d51-4b78-a1b0-82f9dd'(Testing for mail read) is not configured as a multi-tenant application. Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-

Open vishnuchoudhary2822 opened this issue 2 years ago • 1 comments

AADSTS50194: Application '3b79e557-4d51-4b78-a1b0-82f9dd'(Testing for mail read) is not configured as a multi-tenant application. Usage of the /common endpoint is not supported for such applications created after '10/15/2018'. Use a tenant-specific endpoint or configure the application to be multi-tenant.

vishnuchoudhary2822 avatar Oct 05 '23 11:10 vishnuchoudhary2822

You registered your application to only allow users in your tenant. You need to either:

  • Change your app registration to allow "Accounts in any organizational directory and personal Microsoft accounts."

  • Update this line in .env, replacing common with your tenant ID.

    https://github.com/microsoftgraph/msgraph-sample-phpapp/blob/c82afc94f04b5e3d88531d84bef6286206dddb61/graph-tutorial/example.env#L64

jasonjoh avatar Oct 05 '23 13:10 jasonjoh