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 (304k 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

Hello, we are using the script from https://www.adaxes.com/questions/12406/send-approval-request-to-manager-of-group-member?show=12406#q12406 to request approval from a ... the text in the Submitted message without the default message going out. Thank you!

asked 3 days ago by sphelpsjr (20 points)
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

Just recently built a new server, installed 2025.1, and restored configuration from a backup of our other server running 2023.2. I updated the web interface address in ... d6d4f3bd7654 and I'm able to approve/deny from that interface without issue. Any ideas?

asked May 13 by msinger (230 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

Unable to select the option "Hide from exchange addres list" from shared mailbox that is being managed via Adaxes Getting this error The operation on mailbox "6e481282- ... . This action should be performed on the object in your on-premises organization.

asked Apr 17 by sctheva (20 points)
3,716 questions
3,396 answers
8,588 comments
549,945 users