I am looking to update the SSRS security on reports. I have been asked to tidy up the reports . Is there a query that can do this for me on sql server?
I am looking to update the SSRS security on reports. I have been asked to tidy up the reports . Is there a query that can do this for me on sql server?
Here is how to update the security settings:
With a query
First, you have to understand the following concepts:
Catalog
table contains the Reporting Services items (reports, folders, ...)Policy
), is located in thePolicyID
column of theCatalog
tableRoles
and are stored in theRole
tableUsers
tablePolicyUserRole
table links aUser
, aRole
and aPolicy
And last but not least, by default an item inherits the security settings from the parent folder. If you change it, a new
Policy
will be created.What you want to do is locate the security setting GUID you want to use:
Then, apply it to all the elements you need. Here is an example for the children items:
Manually
Change the Parent folder security settings. As stated above, all the elements in the folder where the inheritance has not be broken will automatically use the parent settings.
Then, browse reports and choose "Revert to Parent Security" in the security options for reports having settings different than the parent report.