SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Is there a T-SQL Script that can copy a user's SSRS 2008 permisssions to a new user


Is there a T-SQL Script that can copy a user's SSRS 2008 permisssions to a new user

Author
Message
Weegee71
Weegee71
Right there with Babe
Right there with Babe (732 reputation)Right there with Babe (732 reputation)Right there with Babe (732 reputation)Right there with Babe (732 reputation)Right there with Babe (732 reputation)Right there with Babe (732 reputation)Right there with Babe (732 reputation)Right there with Babe (732 reputation)

Group: General Forum Members
Points: 732 Visits: 207
Hi there

We have a reporting services 2008 set up where users are assigned at the Data Source, Dataset
and Report Levels.

If I want to duplicate the permissions of a user from an existing user, then I have to run the following
query:


USE ReportServer

select C.UserName, D.RoleName, D.Description, E.Path, E.Name
from dbo.PolicyUserRole A
inner join dbo.Policies B on A.PolicyID = B.PolicyID
inner join dbo.Users C on A.UserID = C.UserID
inner join dbo.Roles D on A.RoleID = D.RoleID
inner join dbo.Catalog E on A.PolicyID = E.PolicyID
WHERE UserName LIKE 'ACS\Rebecca'
order by C.UserName ,e.path


But I then have to identify E.Path from the above query and then assign each of these objects to a new user.

Is there a way of copying a current user's assigned permissions to SSRS 2008 objects to a new user with a
T-SQL script, rather than having to do this manually, item by item?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search