Read Reporting Services Catalog

Answered
0
0

I am trying to read the reporting Services catalogue on our server using

ReportingService2010 rs = new ReportingService2010();
rs.UseDefaultCredentials = true;
// Return the list of items in My Reports
CatalogItem[] items = rs.ListChildren(strFolder, false);
foreach (CatalogItem ci in items)

However the folder security is ignored as the whole catalog is read out which suggests the credentials of the pool account on the server are being passed instead of the client credentials.

Reports however run using the client credentials.

Does anyone know how to read the Report Server catalog using the client credentials (Windows Security) without having to pass Domain Username Password?

Thanks for your help

Ewan

  • You must to post comments
Good Answer
0
0

Ok fixed it

You need to obtain the windows identity using

private Windows Identity WI = ApplicationBase.UserIdentity;

Then any calls to the ReportingService need to be made by impersonating the windows identity eg

using (WI.Impersonate())
{
LoadReports(trvReports.Nodes, “/”);
}

Where LoadReports populates a tree view using the Report Server catalog according to the user permissions

HTH

Ewan

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.