0 votes

Hello,

Problem:
i have an OU = 'X' that keeps all account that has been deprovision. I need to disable creation/updating in that OU = 'X' and allow only a specific custom command to be executed that restores the account. The custom command moves the object to the previous OU and thus can update/active the account.

Part of the solution was to create 2 business rule (before updating/create), that will cancel operation if creation/update is made within the business rule scope (the OU = 'X').

Note: moving object is still possible in the OU

Question:
Now i need to allow only 1 custom command to be executed in that OU. Is there a way for a business rule to know which Custom command i am executing? Or any other solution?

Thx

by (50 points)

1 Answer

0 votes
by (289k points)
selected by
Best answer

Hello,

Is there a way for a business rule to know which Custom command i am executing?

Unfortunately, there is no such possibility.

Or any other solution?

We recommend you to use Security Roles to deny the permissions to create/update objects in the OU and only allow to move objects from the OU and execute the Custom Command on objects located in it. The Security role will look like the following:

For details, have a look at the following tutorials: https://www.adaxes.com/tutorials_Delega ... ssions.htm.

Still the Security Role will not deny the permissions for service administrators. If you want to prevent the administrators from creating/updating users in the OU, you will need to create Business Rules triggering Before Creating a User and Before Updating a User that will cancel the operations with corresponding messages. For example:

Related questions

0 votes
1 answer

Code is below. But the subject says it all. When I run the command targeted in this function via the Adaxes GUI or the web interface, it runs without issue. When run using this ... = $null } } end { $admNS = $admService = $credUser = $credPwd = $null } }

asked Apr 3 by jrtolle (20 points)
0 votes
1 answer

I'd like to log specific details from my scripts but would like to integrate it with Adaxes if possible.

asked Jun 5 by ZoomGhost (280 points)
0 votes
1 answer

Is it possible to call execution of Adaxes custom command via SPML?

asked Oct 16, 2019 by Dmytro.Rudyi (920 points)
0 votes
1 answer

Hello, I'd like setup a new custom command on the Administrator dashboard that would run the following tasks against a disabled user account simultaneously. Enable their account ... the email when using the %unicodePwd% value. Is there a workaround for this?

asked Apr 23, 2020 by sirslimjim (480 points)
0 votes
1 answer

Hi, I'm trying to add an custom command under Actions. While I'm able to add them under UI editor, it is not visible when a user logs into self-service portal. However, other default actions are visible when I toggle them in UI editor.

asked Feb 5 by Renugopal (120 points)
3,552 questions
3,242 answers
8,243 comments
547,828 users