0 votes

Hello,

when we create an user we send an "welcome mail" with UPN and password out. Sometimes the manager of this user is on vacation or cant for some reason not forward the email. For that reason i want to create an custom command so that the Service Desk worker can send that Mail.

That means that the Service Desk worker logs in on the Webui and uses that custom command. User A that should be getting the Mail should be chosen, and after that user B should be chosen and after that a mail should be sent. The info for user b should be in that mail. We write the initial password in an custom attribute so that should not be a problem.

How can i achive this? With object parameters? But then i cant use the send email action.

Thanks in advance.

by (140 points)

1 Answer

+1 vote
by (216k points)

Hello,

To achieve the desired, you need to use a custom command with an AD object picker parameter. The user targeted by the custom command will be the email recipient, and the command will email the information about the user selected in that AD object picker parameter.

However, you need to send this email via a PowerShell script in the Run a program or PowerShell script action. It cannot be done via the Send e-mail notification action because there is no way to obtain the attribute values of the new user and the email address of the recipient just with value references. For information about sending emails via a script, have a look at the SendMail method. For more details about scripting in Adaxes, have a look at the Server-side scripting article in our SDK.

0

Thanks for your help i got it working now!

Related questions

0 votes
1 answer

I'm creating a powershell script to handle all the 'modify user' steps, instead of having them be individual steps in Adaxes. This script runs after we fill out a form. A ... empty parameter considered as either a "tab" or "4 spaces" ? Thanks for your help.

asked Dec 12, 2022 by lw.fa (130 points)
0 votes
1 answer

We are trying to mass change user photos through a scripted method. We are using a modified version of the Import User Photo and Optimize User Photo scripts. ... { $newJpegPicture.Dispose() } if ($newThumbnailPicture) { $newThumbnailPicture.Dispose() } }

asked Mar 10, 2019 by polley (1.2k points)
0 votes
1 answer

Hello, We have a problem with the way Adaxes detects % as variables in all PowerShell scripts. We are configuring a HTML email template for all out going emails from the system ... this is a start of a variable. Is there anyway around this? Regards, ice-dog

asked Feb 22, 2019 by ice-dog (170 points)
0 votes
1 answer

After we updated our site to 2018.1 suddenly the Password Self Service link is throwing an error: " Could not load file or assembly 'Softerra.Adaxes.Adsi, Version= ... . The system cannot find the file specified." Other interfaces are workin as expected.

asked Jul 20, 2018 by johnsonua (390 points)
0 votes
0 answers

Morning, I have a very intermittent problem with reading a value from the Global Configuration. See code below. A value that is normally incremented sometimes gets "reset ... is set in the global configuration, use the initial number $number = $initialNumber }

asked Nov 29, 2016 by bistromath (840 points)
3,548 questions
3,239 answers
8,232 comments
547,814 users