ReportingService2010.ListRoles(String, String) ReportingService2010.ListRoles(String, String) ReportingService2010.ListRoles(String, String) Method


Returns the names and descriptions of roles on a report server or a given SharePoint site.

 cli::array <ReportService2010::Role ^> ^ ListRoles(System::String ^ SecurityScope, System::String ^ SiteUrl);
[System.Web.Services.Protocols.SoapDocumentMethod("", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="", ResponseNamespace="", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public ReportService2010.Role[] ListRoles (string SecurityScope, string SiteUrl);
Public Function ListRoles (SecurityScope As String, SiteUrl As String) As Role()


String String String

The security scope for the items to return.For valid security scopes, see ListSecurityScopes().

String String String

The fully qualified URL for the SharePoint site.

Set this parameter to null (Nothing in Visual Basic) when invoking this method in Native mode.



An array of Role objects that contain information about roles for the given site, filtered by the supplied SecurityScope parameter.


The table below shows header and permissions information on this operation.

SOAP Header Usage (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Native Mode Required Permissions None
SharePoint Mode Required Permissions None

This method throws an rsUnsupportedParameterForModeException exception if a non-null value is specified for the SiteUrl parameter in Native mode.

Applies to