You are here:
Reset a User's Password Using the Developer Console (Managed Package)
If you provide a dummy email ID while adding an agent user, then you won't be able to validate that user using the link sent to the user's email ID. In such cases, you can reset a user's password by using the Developer Console.
This feature is part of the Communications Cloud managed package.
After resetting the user's password, you can log in as that user.
- On the Users page, filter the list of users to view the active users.
- Go to the user whose password you want to set. Make a note of the value in the Username column.
- In Settings, click Developer Console.
- In Debug, click Open Execute Anonymous Window.
-
Enter the following Apex code, and replace the placeholder username and
password with the username and password that you want to set.
User usr = [SELECT Id FROM User WHERE username = 'username']; System.setPassword(usr.Id,'your_password'); - Click Execute.

