N8n lost calendar access after Microsoft 365 tenant migration - same permissions, different behavior?

My n8n workflow could access everyone’s calendars in our old M365 tenant, but after migrating to a new tenant it only accesses my own calendar. Getting ErrorAccessDenied for others.

The new tenant actually has MORE app permissions than the old one (see attached images), but still doesn’t work.

Old Tenant:

r/n8n - n8n lost calendar access after Microsoft 365 tenant migration - same permissions, different behavior?|750xauto

New Tenant:

r/n8n - n8n lost calendar access after Microsoft 365 tenant migration - same permissions, different behavior?|750xauto

Here is my node:

r/n8n - n8n lost calendar access after Microsoft 365 tenant migration - same permissions, different behavior?|462.1369294605809xauto

But I am still getting this error:{"error": {"code": "ErrorAccessDenied", "message": "Access is denied. Check credentials and try again."}}

We tried removing conflicting permissions, re-granting admin consent, recreating the app registration. But none worked

Has anyone seen this after a tenant migration? How do I make the new tenant as permissive as the old one?

Using n8n with OAuth2 permissions and Microsoft Graph API.

hello @Michael_liu

You can check your jwt via jwt.io](https://jwt.io/) to see which scopes the token uses.

Also check that you have set the correct tenant ID in the credential’s settings

How do I check get the oken it is hidden from n8n?

if you have a self-hosted instance, you can get the token from the credentials with the cli command:

Credential ID is on the credential page, Details tab

if you have a cloud instance, then you can use curl to obtain the token (it required a little more effort)

1 Like

Thank you I got my token and under the scope it says Calendars. Read Mail.Read, User.Read profile openid email, it seems correct?

I solved the issue, I changed the authorization from header to credential, so I don’t need to login, and changes scope to .default, and it worked, this was helpful thank you!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.