Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds a colleague for the specified account name without sending the email notification.
Namespace: [UserProfileService Web service]
Web service reference: http://Site/_vti_bin/UserProfileService.asmx
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddColleagueWithoutEmailNotification", RequestNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", _
ResponseNamespace := "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function AddColleagueWithoutEmailNotification ( _
accountName As String, _
colleagueAccountName As String, _
group As String, _
privacy As Privacy, _
isInWorkGroup As Boolean _
) As ContactData
'Usage
Dim instance As UserProfileService
Dim accountName As String
Dim colleagueAccountName As String
Dim group As String
Dim privacy As Privacy
Dim isInWorkGroup As Boolean
Dim returnValue As ContactData
returnValue = instance.AddColleagueWithoutEmailNotification(accountName, _
colleagueAccountName, group, privacy, _
isInWorkGroup)
[SoapDocumentMethodAttribute("https://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddColleagueWithoutEmailNotification", RequestNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",
ResponseNamespace = "https://microsoft.com/webservices/SharePointPortalServer/UserProfileService",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public ContactData AddColleagueWithoutEmailNotification(
string accountName,
string colleagueAccountName,
string group,
Privacy privacy,
bool isInWorkGroup
)
Parameters
accountName
Type: System.StringThe account name of the user to add a colleague to.
colleagueAccountName
Type: System.StringThe account name of the colleague to add.
group
Type: System.StringThe group to which the colleague is added as a member.
privacy
Type: [UserProfileService Web service].PrivacyThe privacy policy level of the colleague.
isInWorkGroup
Type: System.Booleantrue to indicate that the colleague should be part of a work group; otherwise, false.
Return Value
Type: [UserProfileService Web service].ContactData
The newly added colleague.
Exceptions
Exception | Condition |
---|---|
SoapException | The colleague cannot be added. |
Remarks
This method adds a new colleague with specified information for the user specified by the accountName parameter without sending email notification to the user, and then returns the information about the new colleague.