Set-AccountContact cmdlet is used for updating contact information.

This cmdlet supports risk-mitigation parameters.

Input parameters

Mandatory (R/O)Description
1 Authentication Information (all parameters)  
2 ContactID int R Contact identifier  
3 AlternativeEmail string O Contact's alternative Email address. It is used for password recovery. Length - 0 - 50 symbols
4 Login string O Login of the account contact (Email) Length - 1 - 50 symbols
5 Name string O Name of the contact Length - 1 - 50 symbols
6 Password SecureString O Password of the contact

According to Contacts' Password Policy

7 Phone string O Contact's phone number Length - 0 - 50 symbols
8 Title string O Title of the contact Length - 0 - 50 symbols

Output parameters

No parameters 

Example of using Set -AccountContact cmdlet

Set-AccountContact -ContactID 12345 -Login -Password (ConvertTo-SecureString "abc123" -AsPlainText -Force) -Name test -Phone 123 -AlternativeEmail qqq@qq.qq -Title test

Note: These properties cannot be set for shared account contacts. You will get - AccessDenied error when running Set -AccountContact cmdlet for them. Refer to our Knowledge Base article Shared Account Contacts for more information.