Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pulling reports from Report Manager
Message
De
25/03/2015 10:59:48
 
 
À
25/03/2015 10:49:30
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01617254
Message ID:
01617258
Vues:
27
>I am looking for a way either in SQL or .NET to do the following:
>
> **Need to implement source code to go to the Report Manager and get only the reports the end-users is authorize to see.
>
>Your assistance would be greatly appreciated.
>
>
>Winfred Majors


Hi, Winfred,

Since SSRS stores all definitions in the ReportServer database, you can use SQL code. Here's a script that will return all the information on what's been deployed. Take a look at the results and see how you can filter this down based on your needs. I didn't write this code - there are many versions of it floating around on websites and blogs that talk about this issue. So run this SQL query against your ReportServer database instance.
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
order by C.UserName   
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform