<?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: How to Batch Add User Permissions to a Report in Power BI Report Server in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-Batch-Add-User-Permissions-to-a-Report-in-Power-BI-Report/m-p/4195517#M37480</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Yes, for AD, a special application needs to be made to the headquarters. The approval process is cumbersome, so we have abandoned the AD approach&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 30 Sep 2024 01:15:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-09-30T01:15:36Z</dc:date>
    <item>
      <title>How to Batch Add User Permissions to a Report in Power BI Report Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-Batch-Add-User-Permissions-to-a-Report-in-Power-BI-Report/m-p/4195163#M37444</link>
      <description>&lt;P&gt;I need to add permissions for users in the reports on Power BI Report Server. There are more than 1000 users that need to be added, and I have a list of users. However, due to IT restrictions, I cannot use AD. Currently, I can add them one by one in the web portal, but since there are so many users, adding them this way is very cumbersome. Therefore, I need to add them in bulk. &lt;SPAN&gt;Additionally, for Row-level security (RLS), it is also necessary to add user permissions in bulk.&amp;nbsp;&lt;/SPAN&gt;I think it's not possible to achieve this through the UI interface and would need to use API calls or programming methods to accomplish this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After reviewing the following three official documents, it seems that there is no API information regarding this operation.&lt;/P&gt;&lt;P&gt;1. Modify or delete a role assignment (SSRS web portal) =&amp;gt; Modify or delete an item role assignment&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/sql/reporting-services/security/role-assignments-modify-or-delete?view=sql-server-ver16#modify-or-delete-an-item-role-assignment" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/sql/reporting-services/security/role-assignments-modify-or-delete?view=sql-server-ver16#modify-or-delete-an-item-role-assignment&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. Row-level security (RLS) in Power BI Report Server =&amp;gt; add-members-to-roles&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/report-server/row-level-security-report-server?source=recommendations#add-members-to-roles" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/report-server/row-level-security-report-server?source=recommendations#add-members-to-roles&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3. Developer handbook overview, Power BI Report Server =&amp;gt; API&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/report-server/developer-handbook-overview#apis" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/report-server/developer-handbook-overview#apis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Furthermore, I am very regretful to see that the Power BI Service API does not include an API for adding users to reports. Based on this description, it is very likely that Power BI Report Server also does not have this API&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Service/Add-users-access-on-a-specific-report-Data-in-a-workspace-using/m-p/2143151" target="_blank" rel="noopener"&gt;Re: Add users access on a specific report/Data in ... - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please let me know if the above requirements can be met? How can they be achieved?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Or, Is there a way to add 1,000 users in bulk to a group using PowerShell on Power BI Report Server? This way, I only need to add one group in the Portal.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 02:40:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-Batch-Add-User-Permissions-to-a-Report-in-Power-BI-Report/m-p/4195163#M37444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T02:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Batch Add User Permissions to a Report in Power BI Report Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-Batch-Add-User-Permissions-to-a-Report-in-Power-BI-Report/m-p/4195278#M37461</link>
      <description>&lt;LI-CODE lang="markup"&gt; due to IT restrictions, I cannot use AD.&lt;/LI-CODE&gt;
&lt;P&gt;Please explain.&amp;nbsp; &amp;nbsp;They won't let you use distribution lists?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Sep 2024 22:16:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-Batch-Add-User-Permissions-to-a-Report-in-Power-BI-Report/m-p/4195278#M37461</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-09-29T22:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Batch Add User Permissions to a Report in Power BI Report Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-Batch-Add-User-Permissions-to-a-Report-in-Power-BI-Report/m-p/4195517#M37480</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, for AD, a special application needs to be made to the headquarters. The approval process is cumbersome, so we have abandoned the AD approach&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2024 01:15:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-Batch-Add-User-Permissions-to-a-Report-in-Power-BI-Report/m-p/4195517#M37480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-30T01:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Batch Add User Permissions to a Report in Power BI Report Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-Batch-Add-User-Permissions-to-a-Report-in-Power-BI-Report/m-p/4210819#M37805</link>
      <description>&lt;P&gt;hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no direct PowerShell cmdlet or API for batch adding users to reports or row-level security (RLS) roles in Power BI Reporting Server. However, you can use the ReportingServicesTools PowerShell module to automate the process of adding users to reports and RLS roles.&lt;/P&gt;
&lt;P&gt;The ReportingServicesTools PowerShell module provides cmdlets that can be used to manage all aspects of the Power BI Reporting Server, including creating and modifying roles and assigning users to them.&lt;/P&gt;
&lt;P&gt;To accomplish this task using PowerShell, you need to write custom scripts that utilize the ReportingServicesTools module. This will involve the following steps:&lt;/P&gt;
&lt;P&gt;Import the ReportingServicesTools module &amp;gt;&amp;gt; Authenticate using the Power BI Reporting Server &amp;gt;&amp;gt; Retrieve existing roles for the report or RLS &amp;gt;&amp;gt; Create new roles or update existing roles as needed &amp;gt;&amp;gt; Add users to the appropriate roles.&lt;BR /&gt;The following is a sample PowerShell script that demonstrates how to add multiple users to an RLS role:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;# Import the ReportingServicesTools module
Import-Module ReportingServicesTools

# Connect to the Power BI Report Server
$serverUrl = "https://myreportserver.contoso.com/reportserver"
$credential = Get-Credential
Connect-RsReportServer -ReportServerUrl $serverUrl -Credential $credential

# Retrieve the existing RLS roles for a report
$reportPath = "/path/to/report"
$roles = Get-RsRole -RsFolder $reportPath

# Find the existing RLS role you want to add users to
$roleName = "MyRLSRole"
$role = $roles | Where-Object { $_.Name -eq $roleName }

# Add users to the RLS role
$users = @("DOMAIN\user1", "DOMAIN\user2", "DOMAIN\user3")
foreach ($user in $users) {
    Add-RsRoleUser -RsFolder $reportPath -RoleName $roleName -UserName $user
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I have answered your question,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;please mark my reply as solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;kudos to this post&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 02:41:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-Batch-Add-User-Permissions-to-a-Report-in-Power-BI-Report/m-p/4210819#M37805</guid>
      <dc:creator>hackcrr</dc:creator>
      <dc:date>2024-10-02T02:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Batch Add User Permissions to a Report in Power BI Report Server</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-to-Batch-Add-User-Permissions-to-a-Report-in-Power-BI-Report/m-p/4609072#M39976</link>
      <description>&lt;P&gt;Your script looks amazing!!&lt;/P&gt;&lt;P&gt;However my&amp;nbsp;&lt;SPAN&gt;ReportingServicesTools PowerShell&lt;/SPAN&gt;&amp;nbsp;module doesn't recognize the functions that you used :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Get-RsRole
Add-RsRoleUser&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help please?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 13:31:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-to-Batch-Add-User-Permissions-to-a-Report-in-Power-BI-Report/m-p/4609072#M39976</guid>
      <dc:creator>TheNoobest</dc:creator>
      <dc:date>2025-03-17T13:31:56Z</dc:date>
    </item>
  </channel>
</rss>

