0 votes

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 follow a strict naming convention. When the user submits the request for a new group, the first task is a script to rename the group but the approval email doesn't include the new name, only what the staff member has entered. They do use the approval emails for other tasks though and aren't at a stage to have these turned off just yet. Having the ability to create the approval programatically, with an option to send the email or not would be really useful as there could be a balance of both automated approval emails and not as required.

Thanks

Matt

by (2.0k points)

1 Answer

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

Hello Matt,

Are there any plans to allow the creation of approval requests via PowerShell?

It has always been possible to submit an operation for approval using a PowerShell script. For details, see https://adaxes.com/sdk/ExecuteScriptContextClass/#SubmitForApproval_details.

When the user submits the request for a new group, the first task is a script to rename the group but the approval email doesn't include the new name, only what the staff member has entered.

You need to make sure that your business rules are properly ordered (renaming before approval) and the renaming is performed correctly. For the order settings, have a look at the following help article: https://www.adaxes.com/help/BusinessRuleExecutionOrder. As for the renaming, make sure that it is done using method SetModifiedPropertyValue in a PowerShell script.

0

Thank you, I guess the SubmitForApproval command will always send an email to the approvers?

The order is correct and I am using the SetModifiedPropertyValue method, but as you can see, the old group name still appears in the approval emails on the Create line, though the new name does indeed show as the Group Name. image.png

0

Hello,

I guess the SubmitForApproval command will always send an email to the approvers?

It will submit the corresponding operation for approval and the specified approvers will receive an email notification.

as you can see, the old group name still appears in the approval emails on the Create line, though the new name does indeed show as the Group Name.

With just a single screenshot, it not possible to check the entire workflow. Please, provide screenshot of all the settings including scripts in TXT format. Also, please, provide a screenshot of the execution log for the create Adaxes test 7 group operation. You can post the details here or send to us at support@adaxes.com.

0

It will submit the corresponding operation for approval and the specified approvers will receive an email notification

Is there any way to add an additional approver after the approval request as been created, and would they still receive an automated email?

I'll send the process through to the support team shortly.

Thank you as always.

0

Hello Matt,

Is there any way to add an additional approver after the approval request as been created, and would they still receive an automated email?

Yes, it is possible using a script. For an example, see https://www.adaxes.com/script-repository/add-approvers-to-approval-requests-s124.htm.

Alternatively, you can do it manually in the Administration console.

0

image I've realised what I was doing wrong here, I was only setting the 'cn' attribute in the script, I needed to set the 'name' attribute too.

Thanks for all your help.

Related questions

0 votes
1 answer

Hello, Using the "Inactive user allowed to log in" report in Adaxes, I want to be able to select specific OUs to exclude out of the scope in this report, or have the option to filter based on a user property such as Department.

asked Nov 8, 2022 by GronTron (320 points)
0 votes
0 answers

Hello, I'm writing another approval cleanup script but i cannot seem to find the attribute I am looking for. When u check the Adaxes Console u can see a request date ... ://<GUID=$guid>" $request = $admService.OpenObject($requestPath, $NULL, $NULL, 0) }

asked Jul 14, 2015 by kerremansserge (470 points)
0 votes
1 answer

Using this built in function: There is no option to change the domain on the user account, however this is not the domain we use for UPN. However after creating a user, you can change it but trying to avoid going back into the object.

asked Apr 14, 2023 by mightycabal (1.0k points)
0 votes
1 answer

We have a 3rd party vendor that we are able to add users based on AD security groups. What I need to do is set a parameter for the number of available licenses and whenever ... the group is 495 I would like an email to trigger telling me to add more licenses.

asked Oct 12, 2022 by A_Pastor (70 points)
0 votes
1 answer

Hello, I have Adaxes installed in one forest (domain.com) and we have a 1 way forest trust with another forest (ca.domain.com). I have made the Adaxes service account in ... .com I get the same error. Could someone help me understand what I'm doing wrong?

asked Jun 6, 2016 by drew.tittle (810 points)
3,548 questions
3,238 answers
8,232 comments
547,810 users