Forum Discussion

alietzau's avatar
alietzau
Frequent Visitor
7 years ago
Solved

Running Graph API queries

To start, the queries that I would like to run are:  https://graph.microsoft.com/v1.0/subscribedSkus https://graph.microsoft.com/v1.0/users/<UPN>/licenseDetails   I have tried many different wa...
  • ImkeF's avatar
    ImkeF
    7 years ago

    I would also prefer that this would be easier.

    Currently you have to:

    1) use a custom connector and

    2) create an app in the azure portal that handles the authentication for the connector

     

    With my connector, I'm able to see the license details. Unfortunately I cannot add the permissions for the subcriptions to the app, as that's a preview feature currently. 

     

    Please let me know if you want to proceed just for the license details and I can provide further help on how to implement the connector. Am I getting it right that you have registered you app successfully already?

  • ImkeF's avatar
    ImkeF
    7 years ago

    Hi alietzau ,

    great - thanks for the tip - that worked for me as well! Actually, didn't have to clear my other permissions fortunately.

     

    You can try my connector. The enclosed zip includes all files necessary. You have to perform the following steps:

    1) Unzip it

    2) edit client_id: replace content by the client id of your app

    3) edit client_secret: replace content by the client secret of you app

    4) zip all files back and rename the zip to "MyGraphB.mez"

    5) Copy that file into your Power BI Desktop-folder: C:\Users\<YourUserName>\Documents\Power BI Desktop\Custom Connectors

     

    Now, when you type in "mygr" for example, these 2 items should show up:

     

    Choose the latter ("MyGraphB2.WebContents") and paste the URL of your choice.

    If interested, I've described the Web.Contents-addition here: https://www.thebiccountant.com/2019/04/17/graph-api-custom-connector-power-bi/