Export (0) Print
Expand All

ReportingService2010.ListRoles Method (String, String)

 

Applies To: SQL Server 2016 Preview

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

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

[<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ListRoles",
    RequestNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
    ResponseNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member ListRoles : 
        SecurityScope:string *
        SiteUrl:string -> Role[]

Parameters

SecurityScope
Type: System.String

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

SiteUrl
Type: System.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.

Return Value

Type: 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

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.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft