Hallo,
In the deprovisioning process we add "_" to each email addresses like you see on below script:
# Get mailbox parameters
$mailboxParams = $Context.TargetObject.GetMailParameters()
# Change email adresses
$mailboxParams.EmailAddressPolicyEnabled = $False
$emailAddresses = $mailboxParams.EmailAddresses
for ($i = 0; $i -lt $emailAddresses.Count; $i++)
{
$emailAddress = $emailAddresses.GetAddress($i,[ref]"ADS_PROPERTY_NONE")
$emailAddress.Address = "_" + $emailAddress.Address
}
$mailboxParams.EmailAddresses = $emailAddresses
But sometimes we have user has X400 an X500 addresses we would like to remove those addresses, how can I do it using Adaxes SDK?