Partilhar via


UserGroup.GetRoleCollectionFromUser Method

Retrieves information about the collection of role definitions in which the specified user is a member.

Namespace:  [UserGroup Web service]
Web service reference: http://Site/_vti_bin/UserGroup.asmx

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/directory/GetRoleCollectionFromUser", RequestNamespace := "https://schemas.microsoft.com/sharepoint/soap/directory/",  _
    ResponseNamespace := "https://schemas.microsoft.com/sharepoint/soap/directory/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetRoleCollectionFromUser ( _
    userLoginName As String _
) As XmlNode
'Usage
Dim instance As UserGroup
Dim userLoginName As String
Dim returnValue As XmlNode

returnValue = instance.GetRoleCollectionFromUser(userLoginName)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sharepoint/soap/directory/GetRoleCollectionFromUser", RequestNamespace = "https://schemas.microsoft.com/sharepoint/soap/directory/", 
    ResponseNamespace = "https://schemas.microsoft.com/sharepoint/soap/directory/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public XmlNode GetRoleCollectionFromUser(
    string userLoginName
)

Parameters

  • userLoginName
    Type: System.String

    A string that contains the user name (DOMAIN\User_Alias) of the user.

Return Value

Type: System.Xml.XmlNode
Returns an XML fragment that provides information about the specified collection of role definitions.

See Also

Reference

UserGroup Class

UserGroup Members

UserGroup Web Service