- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2022 10:28 AM
We are using the IntegrationHub Microsoft AD spoke to create certain user accounts, however, we have a hard time generating passwords in this action below:
How do I generate such a password that I can send over in a notification to a user? Can I set this up somewhere?
Solved! Go to Solution.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2022 05:42 PM
Hi Hanaphouse,
Create an Action that will generate and return a random password and drag the returned value to the field.
A. Action
1. Action Input
2. Script step
(function execute(inputs, outputs) {
var pwdLength = inputs.length;
var randomString = '';
for (var i = 0; i < pwdLength; i++) {
randomString = Math.random().toString(36).slice(-8);
}
outputs.password = randomString;
})(inputs, outputs);
3. Action Output
B. Sample execution flow (since I don't have AD Integration Hub). Instead of "Log", use the AD Integration Hub.
Execution result:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2022 02:42 PM
The following should help you generate a suitable password:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-25-2022 05:42 PM
Hi Hanaphouse,
Create an Action that will generate and return a random password and drag the returned value to the field.
A. Action
1. Action Input
2. Script step
(function execute(inputs, outputs) {
var pwdLength = inputs.length;
var randomString = '';
for (var i = 0; i < pwdLength; i++) {
randomString = Math.random().toString(36).slice(-8);
}
outputs.password = randomString;
})(inputs, outputs);
3. Action Output
B. Sample execution flow (since I don't have AD Integration Hub). Instead of "Log", use the AD Integration Hub.
Execution result:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2023 04:50 AM
Hi, i tried in the same way which you are following. But it is not working. The random password is not triggering . Please find the attached picture. Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 03:28 AM
Can you please share the screenshot of log page on flow designer.
Thanks in advance,
Dhana