SCCM WebService API Reference

SCCMWebService..::..CheckRoles Method

Determines whether the calling user is in the specified roles.

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

Syntax


[SoapHeaderAttribute]
[WebMethodAttribute]
public RequiredGroupMembership[] CheckRoles(
	string[] roles
)
<SoapHeaderAttribute> _
<WebMethodAttribute> _
Public Function CheckRoles ( _
	roles As String() _
) As RequiredGroupMembership()
[SoapHeaderAttribute]
[WebMethodAttribute]
public:
array<RequiredGroupMembership^>^ CheckRoles(
	array<String^>^ roles
)

Parameters

roles
Type: array<String>[]()[][]

Return Value

true if computer is in the specified role, otherwise false.