<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trigger a Data connection refresh through API in Service</title>
    <link>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2951623#M181908</link>
    <description>&lt;P&gt;i have used my existing cliend id and client secret where i have registered an app for pulling data from AD directory , i have used the same credentials for the below code&lt;/P&gt;&lt;P&gt;#import msal&lt;BR /&gt;import requests&lt;BR /&gt;import json&lt;BR /&gt;import os&lt;BR /&gt;from adal import AuthenticationContext&lt;/P&gt;&lt;P&gt;def main():&lt;BR /&gt;&lt;BR /&gt;client_id='xxxxx'&lt;BR /&gt;resource = 'ZZZZZ'&lt;BR /&gt;username = 'youraccount@domain.com'&lt;BR /&gt;tenantname = 'YYYYYY'&lt;BR /&gt;client_secret = 'GGGGGG'&lt;BR /&gt;password = 'YourMegaSafePassword738!*'&lt;BR /&gt;authority_url = '&lt;A href="https://login.microsoftonline.com/yourdomain.com" target="_blank"&gt;https://login.microsoftonline.com/yourdomain.com&lt;/A&gt;'&lt;BR /&gt;scope = ["&lt;A href="https://analysis.windows.net/powerbi/api/.default" target="_blank"&gt;https://analysis.windows.net/powerbi/api/.default&lt;/A&gt;"]&lt;BR /&gt;url_groups = '&lt;A href="https://api.powerbi.com/v1.0/myorg/groups" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;#msal to obtain the token - TBD !!!!&lt;BR /&gt;#app = msal.PublicClientApplication(client_id, authority=authority_url)&lt;BR /&gt;#result = app.acquire_token_by_username_password(username=username,password=password,scopes=scope)&lt;/P&gt;&lt;P&gt;auth_context = AuthenticationContext('&lt;A href="https://login.microsoftonline.com/" target="_blank"&gt;https://login.microsoftonline.com/&lt;/A&gt;' +tenantname)&lt;BR /&gt;token = auth_context.acquire_token_with_client_credentials(resource=resource, client_id=client_id,client_secret=client_secret)&lt;BR /&gt;print('DEBUG', token)&lt;BR /&gt;accessToken = "test"&lt;BR /&gt;tokenType = token['tokenType']&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;refresh_url = '&lt;A href="https://api.powerbi.com/v1.0/myorg/datasets/{datasetid}/refreshes" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/datasets/{datasetid}/refreshes&lt;/A&gt;'&lt;BR /&gt;header = {"referer": "&lt;A href="https://learn.microsoft.com/" target="_blank"&gt;https://learn.microsoft.com/&lt;/A&gt;", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.62", "Content-Type":"application/json","Authorization": f"Bearer {accessToken}"}&lt;BR /&gt;payload = {"notifyOption":""}&lt;BR /&gt;print('header', header)&lt;BR /&gt;response = requests.post(url=refresh_url, data=payload, headers=header)&lt;BR /&gt;print('response', response) #response.json())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#os.system("pause")&lt;/P&gt;&lt;P&gt;if __name__ == '__main__':&lt;BR /&gt;main()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you guide me , is there any step where i need to do a app registration in AD directory for power bi . i believe i am missing something with app registration and obtaining the access token.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2022 13:57:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-06T13:57:37Z</dc:date>
    <item>
      <title>Trigger a Data connection refresh through API</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2947604#M181702</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to power bi and trying to triggger a data connection referesh using API.&amp;nbsp; I have gone through the link&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/refresh-dataset" target="_blank" rel="noopener"&gt;Datasets - Refresh Dataset - REST API (Power BI Power BI REST APIs) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortunately when i try to execute the api post call through browser , i am getting the below error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;&lt;SPAN&gt;Access to&amp;nbsp;api.powerbi.com&amp;nbsp;was denied&lt;/SPAN&gt;&lt;/H1&gt;&lt;P&gt;You don't have authorization to view this page.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;HTTP ERROR 403&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Can someone guide me how to proceed or implement the API feature here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 07:50:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2947604#M181702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-05T07:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a Data connection refresh through API</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2950024#M181831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Do you want to connect to Power BI REST API in Power BI Desktop and you will get 403 errror?&lt;/P&gt;
&lt;P&gt;Firstly, we need to get Access token in Power BI Desktop. We will get access token from Power BI by below code.&lt;/P&gt;
&lt;P&gt;Please replace the parameters like "client_id","APP ID" and so on by correct values.&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;() =&amp;gt;

 

let

    body = "client_id=" &amp;amp; #"App ID"

    &amp;amp; "&amp;amp;scope=https://analysis.windows.net/powerbi/api/.default&amp;amp;client_secret=" &amp;amp; #"App Secret"

    &amp;amp; "&amp;amp;grant_type=client_credentials",

    Data= Json.Document(Web.Contents("https://login.microsoftonline.com/"&amp;amp; TenantID &amp;amp; "/oauth2/v2.0/token/",

    [Headers=[#"Content-Type"="application/x-www-form-urlencoded"], Content=Text.ToBinary(body)])),

    access_token = Data[access_token]

in

    access_token&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;() =&amp;gt;

 

let

    body =  "&amp;amp;grant_type=Password&amp;amp;resource = https://analysis.windows.net/powerbi/api

&amp;amp;client_id=*****&amp;amp;username=*****&amp;amp;password=*****",

    
 Data=Json.Document(Web.Contents("https://login.microsoftonline.com/common/oauth2/v2.0/token/",

    [Headers=[#"Content-Type"="application/x-www-form-urlencoded"], Content=Text.ToBinary(body)])),

    access_token = Data[access_token]

in

    access_token&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can follow this&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=N8qYRSqRz84%20," target="_self" rel="nofollow noreferrer noopener"&gt;video&lt;/A&gt;&amp;nbsp;to get data from the Rest API by access token in first step.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Finally, you can replace bear token by the access token parameter.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It will refresh every time your refresh your report.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Video: How to get access token and call Rest API by dynamic access token in Power BI Desktop? (5:30 to 9:30)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P lang="en-US" data-unlink="true"&gt;&lt;A href="https://www.youtube.com/watch?v=N8qYRSqRz84" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;SPAN&gt;all Power BI Rest API with Dynamic Access Token From Power BI Desktop |Power BI Rest API&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, you may refer to this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/reports/get-reports" target="_self" rel="nofollow noopener noreferrer"&gt;offical blog&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to learn more details about Get Report Rest API.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have also found a similar psot, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/Power-BI-REST-API-gives-403-error-User-does-not-have-access-to/m-p/607049" target="_blank"&gt;Solved: Power BI REST API gives 403 error (User does not h... - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it still does not help, please provide more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ Polly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 02:57:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2950024#M181831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T02:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a Data connection refresh through API</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2950158#M181837</link>
      <description>&lt;P&gt;Thanks for the detailed explanation and sorry for missing information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to trigger the data connection referesh using Python.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 04:30:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2950158#M181837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T04:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a Data connection refresh through API</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2951268#M181895</link>
      <description>&lt;P&gt;I am trying to get the access token or some way of login using python and submit the post request using python.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 11:24:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2951268#M181895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T11:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a Data connection refresh through API</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2951623#M181908</link>
      <description>&lt;P&gt;i have used my existing cliend id and client secret where i have registered an app for pulling data from AD directory , i have used the same credentials for the below code&lt;/P&gt;&lt;P&gt;#import msal&lt;BR /&gt;import requests&lt;BR /&gt;import json&lt;BR /&gt;import os&lt;BR /&gt;from adal import AuthenticationContext&lt;/P&gt;&lt;P&gt;def main():&lt;BR /&gt;&lt;BR /&gt;client_id='xxxxx'&lt;BR /&gt;resource = 'ZZZZZ'&lt;BR /&gt;username = 'youraccount@domain.com'&lt;BR /&gt;tenantname = 'YYYYYY'&lt;BR /&gt;client_secret = 'GGGGGG'&lt;BR /&gt;password = 'YourMegaSafePassword738!*'&lt;BR /&gt;authority_url = '&lt;A href="https://login.microsoftonline.com/yourdomain.com" target="_blank"&gt;https://login.microsoftonline.com/yourdomain.com&lt;/A&gt;'&lt;BR /&gt;scope = ["&lt;A href="https://analysis.windows.net/powerbi/api/.default" target="_blank"&gt;https://analysis.windows.net/powerbi/api/.default&lt;/A&gt;"]&lt;BR /&gt;url_groups = '&lt;A href="https://api.powerbi.com/v1.0/myorg/groups" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/groups&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;#msal to obtain the token - TBD !!!!&lt;BR /&gt;#app = msal.PublicClientApplication(client_id, authority=authority_url)&lt;BR /&gt;#result = app.acquire_token_by_username_password(username=username,password=password,scopes=scope)&lt;/P&gt;&lt;P&gt;auth_context = AuthenticationContext('&lt;A href="https://login.microsoftonline.com/" target="_blank"&gt;https://login.microsoftonline.com/&lt;/A&gt;' +tenantname)&lt;BR /&gt;token = auth_context.acquire_token_with_client_credentials(resource=resource, client_id=client_id,client_secret=client_secret)&lt;BR /&gt;print('DEBUG', token)&lt;BR /&gt;accessToken = "test"&lt;BR /&gt;tokenType = token['tokenType']&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;refresh_url = '&lt;A href="https://api.powerbi.com/v1.0/myorg/datasets/{datasetid}/refreshes" target="_blank"&gt;https://api.powerbi.com/v1.0/myorg/datasets/{datasetid}/refreshes&lt;/A&gt;'&lt;BR /&gt;header = {"referer": "&lt;A href="https://learn.microsoft.com/" target="_blank"&gt;https://learn.microsoft.com/&lt;/A&gt;", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 Edg/107.0.1418.62", "Content-Type":"application/json","Authorization": f"Bearer {accessToken}"}&lt;BR /&gt;payload = {"notifyOption":""}&lt;BR /&gt;print('header', header)&lt;BR /&gt;response = requests.post(url=refresh_url, data=payload, headers=header)&lt;BR /&gt;print('response', response) #response.json())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#os.system("pause")&lt;/P&gt;&lt;P&gt;if __name__ == '__main__':&lt;BR /&gt;main()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you guide me , is there any step where i need to do a app registration in AD directory for power bi . i believe i am missing something with app registration and obtaining the access token.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 13:57:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2951623#M181908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T13:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a Data connection refresh through API</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2952699#M181999</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;A 403 error can occur for any of the following reasons. A fiddler capture may be required to investigate further.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The user has exceeded the amount of embed token that can be generated on a shared capacity. Purchase Azure capacities to generate embed tokens and assign the workspace to that capacity. See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/power-bi-embedded/create-capacity" data-linktype="absolute-path" target="_blank"&gt;Create Power BI Embedded capacity in the Azure portal&lt;/A&gt;.&lt;/LI&gt;
&lt;LI&gt;The Azure AD auth token expired.&lt;/LI&gt;
&lt;LI&gt;The authenticated user isn't a member of the group (workspace).&lt;/LI&gt;
&lt;LI&gt;The authenticated user isn't an admin of the group (workspace).&lt;/LI&gt;
&lt;LI&gt;The authenticated user doesn't have permissions. Permissions can be updated using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/users/refreshuserpermissions" data-linktype="absolute-path" target="_blank"&gt;refreshUserPermissions API&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;The authorization header may not be listed correctly. Make sure there are no typos.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;More details:&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/troubleshoot-rest-api" target="_blank"&gt;Troubleshoot Power BI REST APIs - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it still does not help,&amp;nbsp;We suggest you to open a ticket here for help if you are a pro user:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://powerbi.microsoft.com/en-us/support/" target="_self" rel="nofollow noopener noreferrer"&gt;https://powerbi.microsoft.com/en-us/support/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ Polly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 01:35:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2952699#M181999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-07T01:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a Data connection refresh through API</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2952815#M182006</link>
      <description>&lt;P&gt;Thanks again for the response.&amp;nbsp; Is there any guidelines or docs for creating a new user for executing power bi API or do we need to register an app in AD to do all these? i dont want to use my own id to call the API , Any reference or steps to followed for the below steps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Create a Servcie account or app&amp;nbsp; registration in AD ( which ever the best practice)&lt;/P&gt;&lt;P&gt;2) Any setup needs to be done in power bi for the service account?&lt;/P&gt;&lt;P&gt;3) How to obtain a access token using those account.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 02:40:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2952815#M182006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-07T02:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a Data connection refresh through API</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2952868#M182007</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In this case please try an approach from this&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://blog.crossjoin.co.uk/2014/03/26/working-with-web-services-in-power-query/" target="_self" rel="nofollow noopener noreferrer"&gt;link&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/" target="_blank"&gt;Power BI REST APIs for embedded analytics and automation - Power BI REST API | Microsoft Learn&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;BR /&gt;Community Support Team _ Polly&lt;BR /&gt;&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 02:55:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2952868#M182007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-07T02:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a Data connection refresh through API</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2990268#M183969</link>
      <description>&lt;P&gt;I have created an app using&amp;nbsp;&lt;EM&gt;Embed for your organization&lt;/EM&gt; for executing the API in ad directory.&amp;nbsp; I have generated the token using client id and client secret from the new app, i even added the permission for read &amp;amp; write all datasets . but still getting 403 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 14:10:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2990268#M183969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-27T14:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger a Data connection refresh through API</title>
      <link>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2990895#M183991</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;A 403 error can occur for any of the following reasons. A fiddler capture may be required to investigate further.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The user has exceeded the amount of embed token that can be generated on a shared capacity. Purchase Azure capacities to generate embed tokens and assign the workspace to that capacity.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The Azure AD auth token expired.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;The authenticated user isn't a member of the group (workspace).&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;The authenticated user isn't an admin of the group (workspace).&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;The authenticated user doesn't have permissions. Permissions can be updated using refreshUserPermissions API&lt;/STRONG&gt;&lt;/LI&gt;
&lt;LI&gt;The authorization header may not be listed correctly. Make sure there are no typos.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/troubleshoot-rest-api" target="_blank"&gt;Troubleshoot Power BI REST APIs - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Community Support Team _ Polly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 01:38:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Service/Trigger-a-Data-connection-refresh-through-API/m-p/2990895#M183991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-28T01:38:52Z</dc:date>
    </item>
  </channel>
</rss>

