<?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: Power bi report server password update in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1293229#M15544</link>
    <description>&lt;P&gt;Everyone having difficulties with the api approach =&amp;gt; &lt;A href="https://community.powerbi.com/t5/Report-Server/PBIRS-API-issue/m-p/1290394#M15524" target="_self"&gt;https://community.powerbi.com/t5/Report-Server/PBIRS-API-issue/m-p/1290394#M15524&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2020 10:53:13 GMT</pubDate>
    <dc:creator>whereismydata</dc:creator>
    <dc:date>2020-08-13T10:53:13Z</dc:date>
    <item>
      <title>Power bi report server password update</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1287662#M15502</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have quite a lot dashboards using the same AD credentials. Due to the password policy the password needs to be changed from time to time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea how to set the password for all datasources at once?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 13:47:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1287662#M15502</guid>
      <dc:creator>whereismydata</dc:creator>
      <dc:date>2020-08-11T13:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi report server password update</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1287930#M15503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="114087" data-lia-user-login="whereismydata" class="lia-mention lia-mention-user"&gt;whereismydata&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;may be you ask for a service user for the reports, there you can say that the password didn't expire :). It is also a Best Practise to use technical or service User :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Kathrin&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If this post has helped you, please give it a thumbs up!&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Did I answer your question? Mark my post as a solution!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 14:54:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1287930#M15503</guid>
      <dc:creator>KBO</dc:creator>
      <dc:date>2020-08-11T14:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi report server password update</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1287952#M15504</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39924" data-lia-user-login="KBO" class="lia-mention lia-mention-user"&gt;KBO&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, this would be indeed the best solution, but unfortunatelly this is (due to our policy) not possible.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 15:03:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1287952#M15504</guid>
      <dc:creator>whereismydata</dc:creator>
      <dc:date>2020-08-11T15:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi report server password update</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1287962#M15505</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="114087" data-lia-user-login="whereismydata" class="lia-mention lia-mention-user"&gt;whereismydata&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thats a weird policy .... another solution could be diffecult - but may be someone else come with a solution :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Kathrin&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If this post has helped you, please give it a thumbs up!&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Did I answer your question? Mark my post as a solution!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 15:06:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1287962#M15505</guid>
      <dc:creator>KBO</dc:creator>
      <dc:date>2020-08-11T15:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi report server password update</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1288919#M15510</link>
      <description>&lt;P&gt;You would have to write a script to loop through all your data sources and update the password one by one. You should be able to do this with Powershell using the&amp;nbsp;Report Services Powershell Tools (&lt;A href="https://github.com/microsoft/ReportingServicesTools" target="_blank"&gt;https://github.com/microsoft/ReportingServicesTools&lt;/A&gt;) or if you want to use another scripting language you could access the REST api directly (see&amp;nbsp;&lt;A href="https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0" target="_blank"&gt;https://app.swaggerhub.com/apis/microsoft-rs/PBIRS/2.0&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 01:05:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1288919#M15510</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2020-08-12T01:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi report server password update</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1289863#M15516</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="109790" data-lia-user-login="d_gosbell" class="lia-mention lia-mention-user"&gt;d_gosbell&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the hint with the api. looks doable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 08:57:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1289863#M15516</guid>
      <dc:creator>whereismydata</dc:creator>
      <dc:date>2020-08-12T08:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi report server password update</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1293229#M15544</link>
      <description>&lt;P&gt;Everyone having difficulties with the api approach =&amp;gt; &lt;A href="https://community.powerbi.com/t5/Report-Server/PBIRS-API-issue/m-p/1290394#M15524" target="_self"&gt;https://community.powerbi.com/t5/Report-Server/PBIRS-API-issue/m-p/1290394#M15524&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 10:53:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1293229#M15544</guid>
      <dc:creator>whereismydata</dc:creator>
      <dc:date>2020-08-13T10:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Power bi report server password update</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1338173#M15801</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Following up on this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Although working with the API makes sense for some cases I found another solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1) I created a folder named 'Config'. In this I uploaded a blank report with only one datasource.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) Every time the password needs to be changed, the password is only changed in this report.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3) Once the password is updated I run this script on the SQL db&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;/****** Update Password for ServiceUser ******

1) Go to https://&amp;lt;yoururl&amp;gt;/reports/manage/catalogitem/datasources/Config/ServiceUser and change the password
2  Run script

--&amp;gt; only updates password, if username changes uncomment section below 

******/
USE [pbiReportServer]
GO

/* declare variables */
DECLARE &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="13890" data-lia-user-login="username" class="lia-mention lia-mention-user"&gt;username&lt;/a&gt; VARBINARY(max);
DECLARE Anonymous&lt;/a&gt; VARBINARY(max);
DECLARE @ItemIds table (ItemId uniqueidentifier)

/* Select hashed username in ServiceUser report and set it to &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="13890" data-lia-user-login="username" class="lia-mention lia-mention-user"&gt;username&lt;/a&gt; */
SELECT &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="13890" data-lia-user-login="username" class="lia-mention lia-mention-user"&gt;username&lt;/a&gt; = Username FROM [pbiReportServer].[dbo].[DataModelDataSource] d
		LEFT JOIN CATALOG c ON d.ItemId = c.ItemID
		WHERE c.Name = 'ServiceUser'

/* Select hashed password in ServiceUser report and set it to Anonymous&lt;/a&gt; */
SELECT Anonymous&lt;/a&gt; = Password FROM [pbiReportServer].[dbo].[DataModelDataSource] d
		LEFT JOIN CATALOG c ON d.ItemId = c.ItemID
		WHERE c.Name = 'ServiceUser'

/* Select all items with selected username but ServiceUser Report  */
INSERT INTO @ItemIds
SELECT d.[ItemId]
FROM [pbiReportServer].[dbo].[DataModelDataSource] d
LEFT JOIN CATALOG c ON d.ItemId = c.ItemID
WHERE c.Name not like 'ServiceUser' and d.Username = &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="13890" data-lia-user-login="username" class="lia-mention lia-mention-user"&gt;username&lt;/a&gt;

/* Test before change */
--SELECT  'before change' as [Status], * FROM [pbiReportServer].[dbo].[DataModelDataSource]
--WHERE ItemId in (SELECT * FROM @ItemIds)

/* Update password for selected reports */
UPDATE [pbiReportServer].[dbo].[DataModelDataSource]
SET Password = Anonymous&lt;/a&gt;
WHERE ItemId in (SELECT * FROM @ItemIds)

/****** END - Also update username - END *******/
/* Update password for selected reports */
--UPDATE [pbiReportServer].[dbo].[DataModelDataSource]
--SET Username = &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="13890" data-lia-user-login="username" class="lia-mention lia-mention-user"&gt;username&lt;/a&gt;
--WHERE ItemId in (SELECT * FROM @ItemIds)

/****** END - Also update username - END *******/

/* Test after change */
--SELECT  'after change' as [Status], * FROM [pbiReportServer].[dbo].[DataModelDataSource]
--WHERE ItemId in (SELECT * FROM @ItemIds)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It selects all items where the usernamehash equals the one from the blank report and then updates the password hash&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 09:45:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Power-bi-report-server-password-update/m-p/1338173#M15801</guid>
      <dc:creator>whereismydata</dc:creator>
      <dc:date>2020-09-01T09:45:50Z</dc:date>
    </item>
  </channel>
</rss>

