ReportingService2010.ListRoles Method

Returns the names and descriptions of roles for a given SharePoint site.

Namespace:  ReportService2010
Assembly:  ReportService2010 (in ReportService2010.dll)


<SoapDocumentMethodAttribute("", RequestNamespace := "",  _
    ResponseNamespace := "",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function ListRoles ( _
    SecurityScope As String, _
    SiteUrl As String _
) As Role()
Dim instance As ReportingService2010
Dim SecurityScope As String
Dim SiteUrl As String
Dim returnValue As Role()

returnValue = instance.ListRoles(SecurityScope, _
[SoapDocumentMethodAttribute("", RequestNamespace = "", 
    ResponseNamespace = "", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public Role[] ListRoles(
    string SecurityScope,
    string SiteUrl
[SoapDocumentMethodAttribute(L"", RequestNamespace = L"", 
    ResponseNamespace = L"", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
array<Role^>^ ListRoles(
    String^ SecurityScope, 
    String^ SiteUrl
[<SoapDocumentMethodAttribute("", RequestNamespace = "", 
    ResponseNamespace = "", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member ListRoles : 
        SecurityScope:string * 
        SiteUrl:string -> Role[] 
public function ListRoles(
    SecurityScope : String, 
    SiteUrl : String
) : Role[]


  • SiteUrl
    Type: System.String
    The fully qualified URL for the SharePoint site.
    Set this parameter to nulla null reference (Nothing in Visual Basic) (Nothing in Visual Basic) when invoking this method in Native mode.

Return Value

Type: array<ReportService2010.Role[]
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


SharePoint Mode Required Permissions


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