Accessing Graph.microsoft.com on behalf of a customer tennant

First, if this isn’t the right forum, my apologies, and please direct me to the correct one…

I have read, and searched for a week now, and I just don’t seem to get it.
I have a Microsoft Partner Center Global Admin User; “SvcUser”
Using the Partner Center API with this user, I can list all our customers, and get their tennantIds.

Using a TennantId, I gan get the customers users and subscriptions, and all is well.
The App registered in Azure have all the permissions set up…

Now I need to get all domains of a specific tennant… The Partner Center API does not support this, so I turn to Microsoft Graph.
The concept, as I understand it, is to use the “common” endpoint to log in with my “SvcUser” and get a Autherntication code. Then connect to the specific tennant endpoint, supplying the code from the previous step, to get an Authorization token.

Once I have this “Authorization token”, I should be home free…

A.) Can anyone provide me with a clear example on how to implement the Authentication and Authorization calls (C# preferably ) ?
B.) secondary; straighten me out, if all of the above is completely rubbish ?

Thanks!  Smile | :)

Hi @dagsunde,

Thanks for being part of the GitHub Community Forum! We’re glad you’re here.

I wanted to jump in here and mention that if you don’t get the help you’re looking for from this particular community, you might want to try getting help somewhere that focuses on Microsoft Graph. It’s definitely possible another GitHub user might have run into this same issue and can help, but the GitHub Community Forum focuses primarily on topics related to GitHub, Git, and development projects hosted on GitHub. We want to make sure you’re getting the best support you can, but as you suspected this forum may not be the right place for this particular topic.  I found this page on the Microsoft Graph site, perhaps it may be helpful to you. 

Best of luck!

1 Like