How to Set Up a Microsoft Sharepoint or Microsoft Graph API OAuth Client for Connect with a Specific Tenant ID?

This topic was automatically generated from Slack. You can find the original thread here.

hey everyone. I am having trouble setting up a Microsoft Sharepoint or Microsoft Graph API OAuth Client for Connect. From what I understand this is because there is no clear way to specify the Tenant ID of my oAuth client anywhere and so it’s using the Pipedream tenant ID which won’t work with my client id / secret. Anyone have any tips on how to solve this. Using the official Pipedream oAuth app in workflows is not allowed, so this is possible but I have no idea how to make it work.

Interesting — I see that we’re current passing common as the tenant value in the authorization request. So that needs to be a tenant ID or domain in your case?

so i have it set to consumers - would that be the issue do you think?

let me change it to common and see if that resolves the issue

Oh, so you have a tenant value that you define on your OAuth client in Microsoft?

yes, this is required

Got it. Yea can you try common? Ideally we’d surface a flag to you when configuring the OAuth client in Pipedream, but we don’t do that currently.

microsoft doesn’t make this easy, I can’t modify the behaviour, but this is what mine is set to. I am assuming this is consumers not common

I will need to set up a new application to test.

would this be correct?

Wow they really don’t. My read is that common would correspond to the 3rd bullet?

yeah, that’s what I had it on originally

Oh, hm

nope, no luck here unfortunately. Do you perhaps have a guide somewhere on how to set up connect with MS? There are a lot of steps, I may be doing it incorrectly.

We don’t have a Microsoft-specific guide, but let me check to see if we have any error logs for you.

I don’t immediately see errors on my end, can you try going through the auth flow again so I can see if it creates an exception on our end?