0 votes

I am trying to set a business rule to ask me who to email after creating an account. I have it set to the manager field right now but most of the time the manager will not want this email. Or any other way I can send an email to a selected user after the account has been created. Thanks for the help

by (420 points)

1 Answer

0 votes
by (216k points)

Hello,

To achieve what you want, you can add an extra property to the page that is used for creating users. This property will be used to specify the email of the user who should receive the e-mail. Also, you'll need to create a Business Rule triggered after creating a user that will email the information you need to the address specified in the property. For this purpose, you can use one of Adaxes virtual properties that can store text (string) values, for example, CustomAttributeText1. Such properties are not stored in AD, but can be used as any other properties of AD objects. To implement such a solution:

I. Add a Virtual Property to the Page for Creating Users

For information on how to add a property to the page for creating users, see Step 6 in the following tutorial: http://www.adaxes.com/tutorials_WebInte ... diting.htm.

II. Create a Business Rule for Sending Emails after a User is Created

To create a Business Rule that automatically sends emails to the user specified in the virtual property, you can create a Business Rule as follows:

  1. Create a new Business Rule.
  2. On the 2nd step of the Create Business Rule wizard, select User and After Creating a User.
  3. On the 3rd step, ad the Send e-mail notification action.
  4. To send emails to the e-mail address specified by the virtual property, you need to insert a value reference for the virtual property you chose. For example, if you chose to use CustomAttributeText1, use %adm-CustomAttributeText1%.

III. Optional Tasks

  • To disallow creating users without specifying an email to send a notification to, you can, for example, make the virtual property required. For information on how to make a virtual property required, see the following tutorial: http://www.adaxes.com/tutorials_Simplif ... Format.htm.
  • Since a name like CustomAttributeText1 won't tell much your users about the meaning and the function of the property, you'll probably want to give it your own name. For information on how to do that, see the following help article: http://www.adaxes.com/help/?HowDoI.Mana ... Names.html.

Related questions

0 votes
1 answer

In our environment, we have many business rules with "Add to group". Now I have to delete the "Add to group xyz" in all business rules, as the group is now rule-based. Is there ... in Adaxes so that I don't have to search for and delete all "Add to group xyz"?

asked Mar 7 by DRiVSSi (300 points)
0 votes
1 answer

Hello Community, I need, by script to get all Business Rules from a root container with recursive mode. $ns = New-Object "Softerra.Adaxes.Adsi.AdmNamespace" $service = $ns. ... need to have all object which are in child container. Someone could help me ? Thank

asked Aug 18, 2023 by npa (20 points)
0 votes
1 answer

Hello, We have some Create Business Rules with ifs and other actions. Now these have to be controlled by a third person who has no rights to the console. How can I export the ... to a .txt file? The TXT must contain the condition and the actions. Thanks a lot

asked Aug 10, 2023 by DRiVSSi (300 points)
0 votes
1 answer

Hi, might be a stupid question, but how are actions executed within a business like these here: Is every action only executed if the previous action succeeded or each time a ... .o I thought they will be executed in order and depends each on the previous one

asked Jun 5, 2023 by wintec01 (1.5k points)
0 votes
1 answer

Hi, our user objects are synced from HR system into AD and generated by a middleware - would a business rule "After creating a user" be triggered in this way or not? Looks ... for this? I need to control those tasks and would like to exit in case of issues

asked Jun 5, 2023 by wintec01 (1.5k points)
3,549 questions
3,240 answers
8,232 comments
547,814 users