UserProfileService.GetInCommon method

Gets the membership groups, colleagues, and manager that the specified user shares with the current user.

Namespace:  WebSvcUserProfileService
Assembly:  UserProfileServices (in UserProfileServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetInCommon", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetInCommon ( _
    accountName As String _
) As InCommonData
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim returnValue As InCommonData

returnValue = instance.GetInCommon(accountName)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetInCommon", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public InCommonData GetInCommon(
    string accountName
)

Parameters

Return value

Type: WebSvcUserProfileService.InCommonData
The common information that the specified user shares with the current user.

Exceptions

Exception Condition
SoapException

The common information cannot be retrieved.

Remarks

This method returns the common data including the membership groups, colleagues, and manager that the specified user and the current user have in common.

See also

Reference

UserProfileService class

UserProfileService members

WebSvcUserProfileService namespace