lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.85k stars 292 forks source link

change users email addr #508

Closed MeOnGitHub123 closed 5 years ago

MeOnGitHub123 commented 5 years ago

hey, is there a way to change the email of users ?

running lastpass in enterprise but as we changing our domain it will be very helpful to update users email in commandline instead GUI

checked e.g. #445 however lpass --profile seems not existing

LuL1ll0 commented 5 years ago

Users can only change their email address themselves. They always must be a part of that process, as their email address is used as salt for vault encryption, see here, meaning their vault must first be in a decrypted state before the email address can be changed.

The only way I know to automate this is by using the LastPass AD Connector-- that tool caches the mail attribute of the user-object, and when this attribute is changed in AD, LastPass will send that user an email, notifying them that they need to login into their vault and change their email address.