Error “Invalid credentials for web source” in Power BI Service, no issue in Desktop

  • Error “Invalid credentials for web source” in Power BI Service, no issue in Desktop

    Posted by DSC Communities on May 20, 2020 at 6:43 am
    • AndrĆ© Stolk

      Member

      May 20, 2020 at 6:43 AM

      Hello,

      I’m dealing with a connection issue in Power BI Service. My report works fine in Power BI Desktop and I use the same credentials in Power BI Service.
      I’m creating a report which dynamically has to retrieve members (user accounts) from AAD groups, using Microsoft Graph API.
      For this purpose, I have created 2 functions and 1 connection with a SharePoint list. From the SharePoint list and some added hard coded labels I create a row set which contains group names of the AAD groups from which I want to extract the members (in the screenshot below the most-right column named “PortalTalkGroupName”).

      Next I do an invoke of a function “fn_GetGroup” with the two most-right columns as arguments, to get the objectId of those groups:

      After expanding the objectId I invoke another function “fn_GetGroupMembers” with the objectId as an argument, to get the members of each group:

      After expanding and some filtering the result is a rowset with usernames, email addresses and type of authorization per project:

      This approach works fine within Power BI Desktop. But when publishing to PowerBI.com and try to set the credentials for the web connection (required for the 2 functions, I get this error:
      Failed to update data source credentials: The credentials provided for the Web source are invalid. (Source at https://graph.windows.net/XXXXXXXX-YYYY-ZZZZ-AAAA-BBBBBBBBBBBB/groups.)

      Someone any idea how to get this work on PowerBI.com ?

      ——————————
      AndrƩ Stolk
      Consultant Microsoft Solutions
      QS Solutions
      Netherlands
      ——————————

    DSC Communities replied 5 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Error “Invalid credentials for web source” in Power BI Service, no issue in Desktop’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!