Admins can utilize Salesforce Flow to create and streamline business processes in the Salesforce platform. Flow offers endless use cases, which enables organizations to automate and optimize their operations. Additionally, Salesforce Flow allows the creation of administrative workflows, enabling both admin and non-admin users to proficiently execute these tasks. As an example, you can set password for multiple users using a custom invocable action.
In this post, you can find an invocable action that lets you set password for multiple users. Pay attention that this is not same as resetting password. You can set any password that you want and give it to the users.
How to Use the Component
1- Install the component using the installation links below.
2- Add a new action to your flow and search for Set Password, this is the name of the action that you installed.
3- This action can set password for multiple users. Therefore, you should pass the user ids (as a text collection) to userIds input value. Secondly, provide a password value for the selected users. This will be the new password of those users.
1- Add a screen with a lookup input component. This lookup component should allow selecting multiple user records. Then add another field for the new password. It can be a text or a password field. Optionally, add another one for password confirmation.
Using 'Validate Input' option, you can make sure that the values are equal.
2- Add the Set Password action and provide values for user ids and password. Lookup component stores the selected records as a text collection. So, you can just enter the output of the lookup component. You can use another selection component like picklist with a record choice set too. In this case, you need to create a text collection and use an assignment to add ids to the collection.
At the end, your flow should look like this. This is just a simple flow to show how the action works. Don't forget to add fault paths to your flow!
- This action works for external (community) users as well.
- Non-admin users can use the flow as well.
- Unlike reset password, users don't get an email about their new password.
- Make sure to follow the password policies (minimum password length and complexity requirement).
- Although it is a very useful action, it can be very dangerous. You don't want users to set password for other users. Therefore, you should build your flow carefully and give access to specific users only. You can use custom permissions or restrict access to enabled profiles or permission sets.
Use this link to install in production or developer edition environments.
Use this link to install in sandbox environments.
This package contains one more action to Reset Password for selected users. Click here to read about this action.