IAuthorizationExtension.GetPermission for a specific report

The signature of the method is:

publicStringCollection GetPermissions(string userName,IntPtr userToken,

SecurityItemType itemType,byte[] secDesc)

How to get permissions for a specific report "/report/reportxyz" using this interface?

Thanks very much!

Yuhang.

[704 byte] By [Yuhang] at [2007-12-22]
# 1
Just in case someone is looking for information on this like I was, I found my answer here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSPROG/htm/rsp_ref_soapapi_service_ak_269g.asp

Specifically, this chunk of code will go through the permissions on a report:

Imports System
Imports System.Web.Services.Protocols

Class Sample
Public Shared Sub Main()
Dim rs As New ReportingService()
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
Try
Dim permissions As [String]() = rs.GetPermissions("/SampleReports/Company Sales")
Dim perm As String
For Each perm In permissions
Console.WriteLine(perm)
Next perm
Catch e As SoapException
Console.WriteLine(e.Detail.InnerXml.ToString())
End Try
End Sub 'Main

I know the question was old, but it was exactly what I was looking for.
It had no answer, so I thought I would add a reply with the information
that I found.

Thanks!
End Class 'Sample

bryanchardy at 2007-8-30 > top of Msdn Tech,SQL Server,SQL Server Reporting Services...

SQL Server

Site Classified