Comments (4)
Thank you very much for the quick turnaround Claudio!
from reportingservicestools.
I was still getting this error:
New-RsFolder -ReportServerUri $ReportServerUri -Credential $rptLogin -RsFolder '/' -FolderName "Test"
New-RsFolder -ReportServerUri $ReportServerUri -Credential $rptLogin -RsFolder "/Test" -FolderName "Other"
Grant-RsCatalogItemRole -ReportServerUri $ReportServerUri -Credential $rptLogin -Identity "User" -Path "/Test" -RoleName "Browser"
Grant-RsCatalogItemRole -ReportServerUri $ReportServerUri -Credential $rptLogin -Identity "User" -Path "/Test/Other" -RoleName "Content Manager"
The reason was if you specify the Identity as "User" it will work for the first call however it converts the Identity to "SERVER_NAME\User" on second run it does not pickup the fact that the Identity already exists and produces the same error.
No sure if there should be a warning about this or if the module should be modified to check for SERVER_NAME\ prefix and if it does not exist then add it.
from reportingservicestools.
I am on 0.0.4.9, Was it fixed as part of this version? I am still getting this error while adding more than one role for same user:
Error occurred while granting System User to xxxx! Exception calling "SetSystemPolicies" with "1" argument(s):
"System.Web.Services.Protocols.SoapException: The policy for 'xxxx' user or group is not valid. The role assignment is either empty,
specifies a user or group name that is already used in an existing role assignment for the current item, or specifies duplicate roles for the same user or
group. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InvalidPolicyDefinitionException: The policy for 'xxxx' user or group is not
valid. The role assignment is either empty, specifies a user or group name that is already used in an existing role assignment for the current item, or
specifies duplicate roles for the same user or group.
at Microsoft.ReportingServices.Library.ReportingService2005Impl.SetSystemPolicies(Policy[] Policies, Guid batchId)
at Microsoft.ReportingServices.Library.ReportingService2005Impl.SetSystemPolicies(Policy[] Policies)
at Microsoft.ReportingServices.WebServer.ReportingService2010.SetSystemPolicies(Policy[] Policies)"
+ CategoryInfo : OperationStopped: (:) [], Exception
+ FullyQualifiedErrorId : Error occurred while granting System User to xxxx! Exception calling "SetSystemPolicies" with "1" argument(s):
"System.Web.Services.Protocols.SoapException: The policy for 'xxxx' user or group is not valid. The role assignment is either empty, spec
ifies a user or group name that is already used in an existing role assignment for the current item, or specifies duplicate roles for the same user or
group. ---> Microsoft.ReportingServices.Diagnostics.Utilities.InvalidPolicyDefinitionException: The policy for 'xxxx' user or group is no
t valid. The role assignment is either empty, specifies a user or group name that is already used in an existing role assignment for the current item,
or specifies duplicate roles for the same user or group.
at Microsoft.ReportingServices.Library.ReportingService2005Impl.SetSystemPolicies(Policy[] Policies, Guid batchId)
at Microsoft.ReportingServices.Library.ReportingService2005Impl.SetSystemPolicies(Policy[] Policies)
at Microsoft.ReportingServices.WebServer.ReportingService2010.SetSystemPolicies(Policy[] Policies)"
from reportingservicestools.
No new changes have been submitted in that area
from reportingservicestools.
Related Issues (20)
- SSRS 2022 Support in "library.ps1" HOT 2
- Download all SSRS reports via PS script error
- Set-RsRestItemDataSource fails to update linked data sources in reports HOT 1
- Adding Get-RsRestDataSource function HOT 1
- Failed to create catalog item: The remote server returned an error: (422) HOT 1
- Apparent bug with Copy-RsSubscription where a parameter is null HOT 1
- Update of Readme?
- SQL Server 2022 version 16 HOT 7
- Cannot pass parameters to Invoke-WebRequest from New-RsRestSession HOT 2
- Is there a way to delete one or more history snapshots?
- Changing an embedded report datasource to a shared datasource
- GetWMICOMException with PowerShell to remote host
- Failed to create a new session The remote server returned an error: (404) Not Found.
- Write-RsCatalogItem not exporting State Indicators for Gauge Panels
- Write-RsRestCatalogItem doesn't work with large Power BI reports (>25 MB or > MinLargeFileSizeInMb)
- Set-RsDatabase on offline machine: SqlServer PowerShell module version is wrong
- If Report has more than 1 subscription Copy-RsSubscription targets the Source report after the 1st Subscription is copied
- Powershell Module GUID is not unique
- Write-RsRestFolderContent not working in PowerBi Report Server
- "Get-RsFolderContent" not working !!! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reportingservicestools.