how to change owner in all ssrs reports

James Adkins 0 Reputation points
2024-05-07T19:02:58.7966667+00:00

how to change owner in all ssrs reports. I believe there is a table on the server named DBUSERS but not sure how to find it.

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ruel G. Cabusas 220 Reputation points
    2024-05-08T03:15:48.6533333+00:00

    Hi @James Adkins

    You can try to use the code below. Be sure to try it in your development environment first before doing in production and make a backup in production before executing the code.

    For guidance, read on this post also.

    https://www.mssqltips.com/sqlservertip/6001/ssrs-reportserver-database-overview-and-queries/

    USE ReportServer; -- Replace ReportServer with your SSRS database name

    UPDATE dbo.Catalog

    SET OwnerID = (SELECT UserID FROM dbo.Users WHERE UserName = '<newOwner>')

    WHERE OwnerID = (SELECT UserID FROM dbo.Users WHERE UserName = '<currentOwner>')

    AND Type = 2; -- Type = 2 specifies that the item is a report

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.