Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Cloud Computing
  4. Accessing Graph.microsoft.com on behalf of a customer tennant

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

Scheduled Pinned Locked Moved Cloud Computing
securitytutorialcsharpcomcloud
3 Posts 3 Posters 16 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    me dagsunde com
    wrote on last edited by
    #1

    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 :rolleyes: ) ? B.) secondary; straighten me out, if all of the above is completely rubbish ? Thanks! :)

    A K 2 Replies Last reply
    0
    • M me dagsunde com

      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 :rolleyes: ) ? B.) secondary; straighten me out, if all of the above is completely rubbish ? Thanks! :)

      A Offline
      A Offline
      Afzaal Ahmad Zeeshan
      wrote on last edited by
      #2

      We do not have a specific Microsoft Graph forum, neither a Partner Center one, so this one sounds good enough. :-) The thing is, as far as I remember, we needed to do a project similar to this one, and we realized that most of the auth was done using Azure AD. That step you are talking about is the steps for Azure AD. For the Partner Center, check the following links for reference to see how you authenticate, [Partner Center authentication | Microsoft Docs](https://docs.microsoft.com/en-us/partner-center/develop/partner-center-authentication). Once done with the authentication, you can use the same token and authenticate yourself against that token, see the headers for reference [Partner Center REST headers | Microsoft Docs](https://docs.microsoft.com/en-us/partner-center/develop/headers). The domains for the account can be checked, [List domains - Documentation - Microsoft Graph](https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/domain\_list) and as I briefed you a bit earlier, the tokens are mostly captured using the Azure AD and so did Microsoft do that read the complete documentation here, [Get auth tokens - Documentation - Microsoft Graph](https://developer.microsoft.com/en-us/graph/docs/concepts/auth\_overview). Most of the scenarios that revolve around the Partner Center are mentioned here, check if you can find your scenario here as well: [Scenarios | Microsoft Docs](https://docs.microsoft.com/en-us/partner-center/develop/scenarios)

      The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

      1 Reply Last reply
      0
      • M me dagsunde com

        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 :rolleyes: ) ? B.) secondary; straighten me out, if all of the above is completely rubbish ? Thanks! :)

        K Offline
        K Offline
        kdbueno
        wrote on last edited by
        #3

        svc method does not necessarily bind spool space, as credible as the user.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups