How can I change User email's in a sandbox back to their production email in bulk?
e.g. mary=company.com@example.com
to mary@company.com
We have several hundred users and would like to refresh the sandbox monthly. We use SAML single sign-on so passwords are not important. We have automated processes using the email, so even if the user doesn't login it is useful to have the correct email address.
Can Apex mimic changing the email + generate new password?