UserGroup.GetRolesAndPermissionsForCurrentUser Method

Retrieves permissions and role definitions for the current user.

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

Syntax

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

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

Return Value

Type: System.Xml.XmlNode
Returns an XML fragment that provides permissions and role definition information for the current user.

See Also

Reference

UserGroup Class

UserGroup Members

UserGroup Web Service