0 votes

Hello,

I have a problem regarding approval, the case is I will send approval to the admin if there are additional users.

The process has been successful and the approval link has been successfully sent to the admin email, the problem is that the email sends several approval links.

In my case, here I have several OUs, there are system engineers and there are sales & marketing. here I want to add a user to the sales & marketing OU and the approval link was sent successfully but the link that was sent was not only for user A in the sales & marketing OU but also sent to user A on the OU system engineer even though I didn't add user A to the OU system engineer .

Screen Shot 2022-02-15 at 17.31.35 1.png

Screen Shot 2022-02-15 at 17.32.22.png

Screen Shot 2022-02-15 at 17.31.56.png

Screen Shot 2022-02-15 at 17.29.29.png

as a note:

I made "send approval" in "custom command" and then executed it in "business rule" before creating user.

by (100 points)
0

Hello,

Sorry for the confusion, but we are not sure about the entire workflow. As we can see the custom command is executed by the RunHris scheduled task. Could you, please, post here or send us (support@adaxes.com) screenshots of the task and the command? Also, what is the triggering operation of the business rule in the first screenshot? Is it Before creating a user?

0

This is the workflow approval of my case.

First: If there is a new user added in HRIS then adaxes will run "RunHris" on the Scheduled Task.

Screen Shot 2022-02-16 at 08.01.57.png

Screen Shot 2022-02-16 at 08.39.46.png

Second: After the Scheduled Task is executed, it will automatically run the Business Rule (Before creating a user) which in the Business Rule will execute a custom command containing "Send Approval"

Screen Shot 2022-02-16 at 08.40.49.png

Screen Shot 2022-02-16 at 08.41.38.png

1 Answer

0 votes
by (272k points)

Hello,

Thank you for the provided details. There is no loop. It looks like the Before Buat User business rule triggered twice because there were two users with the same name created in two different OUs. The OUs are wandavision.net\PrimaSys\Branch Subaya and wandavision.net\PrimaSys\Chief. If you do not want the business rule to trigger for users created in either of the OUs, adjust the rule scope accordingly. For details, have a look at step 6 of the following tutorial: https://www.adaxes.com/tutorials_DelegatingPermissions_RequestApprovalForUserCreation.htm.

0

Hello,

Thanks for the previous answer, apparently that's not where the problem is but

After analyzing it, it turns out that the problem is not that there are two users who are the same but in the process of creating a user, is there a solution before the user is created, the user is first entered into the OU and then the approval process is carried out?

In the process of creating a user I use the script in the link below:

https://www.adaxes.com/script-repository/import-user-information-from-sql-database-s249.htm

0

Hello,

Sorry for the confusion, but we are not sure what exactly you mean. The script you referenced creates users in the OU the script is executed for. If there are multiple OUs in the scope (e.g. if executed in a scheduled task), the script will be executed separately for each OU and create/update users in all the OUs.

Related questions

0 votes
1 answer

I turned on the option to have "Approve" and "Deny" links sent in the approval request email. It seems to not be working through. Here is a screenshot of what it ... the link. I also tried using incognito mode in chrome. Same look. Appreciate the assistance!

asked Mar 29, 2021 by mark.it.admin (2.3k points)
0 votes
1 answer

Is there a way to email a notification when there are errors? Our human resources will often delay or forget to let our IT staff know that there was an error on the web interface.

asked Nov 11, 2014 by mobosys (290 points)
0 votes
1 answer

Hello, Based on your script, we check whether there is already a request. However, we often get the following error and do not know why. Can you help us? ... Cannot compare "Softerra.Adaxes.Adsi.Search.AdmSearchResult" because it is not IComparable. Thank you

asked Apr 16 by DRiVSSi (280 points)
0 votes
1 answer

Hi Are there any plans to allow the creation of approval requests via PowerShell? My client has a requirement to allow staff to request new Teams, but the Team needs to ... could be a balance of both automated approval emails and not as required. Thanks Matt

asked Oct 12, 2023 by chappers77 (2.0k points)
0 votes
1 answer

Hi if a request is send to the supervisor of the requester and he does not approve in 7 days can the request be forwarded to the supervisors manager for approval?

asked Sep 29, 2023 by johanpr (80 points)
3,351 questions
3,052 answers
7,791 comments
545,084 users