Forum Discussion
Sascha Halpape
Feb 19, 2020Copper Contributor
How to set "mail" attribute of a user account to null/empty?
Dear community, if we deactivate users that we originally synchronized from our on premise ad and take away their license, they keep their email address in the mail attribute. Can anyone tell me...
RaizelX
Feb 19, 2020Brass Contributor
If this object is synchronized from your AD and has an old on-premise exchange account and you just want to provision a new cloud mailbox.
Clear the following attributes then force a sync.
1. MsExchMailboxGuid
2. MsExchRecipientDisplayType
3. MsExchRecipientTypeDetails
- Sascha HalpapeFeb 19, 2020Copper ContributorHi RaizelX,
the objects are no longer synced and we don't have an on premise AD or Exchange anymore. I don't want to provision a new cloud mailbox. We deactivate old accounts and remove the licenses. I do not understand why the email address is not removed from the attribute.- RaizelXFeb 19, 2020Brass Contributor
Oh, I see. You just want to clear the mail attributes as you already have removed the licenses. I haven't tried to do so but maybe you can use the Remove-Mailbox cmdlet? Thank you!