0 votes

Hello

More approvers would be usefull when adding a member to a group:


+ Manager of the target user.
+ Owner of the target user's OU.

In some cases, a User manager can add a user placed outside the User manager's scope to a group, or a Group manager can add users to his group.
Adding a user to a group may give the target user rights to data, access to IT system, or may issue an invoice. In all cases, the target user's manager must approve membership.

- Regards

by (2.6k points)

1 Answer

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

Hello,

Actually, that can be done with the help of scripts. Have a look at the following examples we've made for you in the Script Repository:

0

Hello

When launcing: $Context.SubmitForApproval(@($ManagerGroup), $False, $False, $False, $False)

Adaxes tells me, that the method is unknown:
"Method invocation failed because [Softerra.Adaxes.Adsi.Scripting.ExecuteConditionScriptContext] doesn't contain a method named 'SubmitForApproval'."

SubmitForApproval does not show up using intellisense either ?

- Thanks

0

Hello,

What version of Adaxes are you using? The possibility to send operations for approval from script was introduced only in Adaxes 2014.1 (build 3.7.10510.0). If you are using an earlier version of Adaxes, you won't be able to use the $Context.SubmitForApproval method.

0

I'm using this version:


Also, I added IMPORT-MODULE Adaxes in top of the script.

- Best regards

0

Hello,

Can you post here or send us (to support[at]adaxes.com) a screenshot of the Business Rule, Scheduled Task or Custom Command that runs the script and also the text of your script?

0

Hello,

The reason for the issue is that you are trying to call the method in a condition. The $Context.SubmitForApproval method can be used only with the Run a program or PowerShell action. To achieve what you want, you can run your script using the Run a program or PowerShell action, and instead of setting $Context.ConditionIsMet to True, you can call the $Context.Cancel method that does exactly the same as the Cancel this operation action.

Related questions

0 votes
1 answer

Is there any way to give users the ability to see the approvers for their requests without necessarily giving them full read access to those approvers properties?

asked Sep 25, 2019 by dotkickpra (50 points)
0 votes
0 answers

Is there any way to give users the ability to see the approvers for their requests without necessarily giving them full read access to those approvers properties?

asked Oct 20, 2016 by RickWaukCo (320 points)
0 votes
1 answer

It would be good to have a selectable column for the tasks schedule pane. This would allow us to easily show tasks scheduled dates and give us the ability to sort by the ... case it would be good to sort all of these password resets by their scheduled date.

asked Apr 30 by Moodie007 (60 points)
0 votes
1 answer

the script repo examples are almost entirely written in ADSI, however powershell is now far more widely used, is it possible to have all scripts written in both ADSI and powershell.

asked Jan 5 by i*windows (280 points)
0 votes
1 answer

Shared mailboxes are treated as standard users, however they really should have a separate view. I would like to request that a new view is made avaiilable for Shared ... office location, data from HR systems, windows profile, etc are not really relevant.

asked Jun 23, 2023 by i*windows (280 points)
3,548 questions
3,239 answers
8,232 comments
547,814 users