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...
ATKai
Jul 30, 2021Brass Contributor
Have you figured out a way to set it to null? I also need to set it to null but I haven't found a way yet.
ChrissyN
May 02, 2022Copper Contributor
Get-ADUser -Identity "SAMAccountName" | Set-ADUser -EmailAddress ""
Are you using a PowerShell termination script or manually performing your offboarding?
- Sascha HalpapeMay 02, 2022Copper Contributor
ChrissyN We did the offboarding manually. The commands you posted are for on premise AD. So I think they cannot be used for the cloud accounts.