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 (233k 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.1k 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 (190 points)
0 votes
1 answer

Hello I need some help to implement the following task: In a business rule "Before adding a member to a group" an approval should be sent to the manager of the member who will be added to the group. Do you have an example for this? Thanks and greetings Pudong

asked Jun 14 by pudong (600 points)
0 votes
0 answers

As the title mentions, I'm trying to figure out a way to have HR apply multiple modifications on a user's account (change of position, title, department, phone, etc...) ... phone number (in the same form), it sends two approval requests. Thanks for your help!

asked Jan 26 by lw.fa (80 points)
0 votes
1 answer

Hi, I was just wondering if there was a way to force the format of the date picker value in the web approval interface. We have operation that are very time specific ... like that in the web interface. Example of the problem: Thank you, Jean-Simon Tremblay

asked Dec 3, 2021 by jsimon.tremblay (20 points)
2,887 questions
2,606 answers
6,774 comments
121,152 users