0 votes

Hi,
I'm working on a custom command to set account expiration - like this

No matter what time is selected by user - it set's to 23:59.
But in the approval email - time is shown the one, which was selected by user.
Can it be modified before sending for approval?
Thanks!

by (920 points)

1 Answer

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

Hello Dmytro,

The Custom Command sets the time of the Account Expires property to 23:59 because the time is specified in the properties of the Modify the user action. To use the time specified in the command parameter, clear the Set time checkbox in the Generate date tab of the settings for the property modification.

The Custom Command should look like the following:

Related questions

0 votes
0 answers

I made a custom command that executes a powershell script, if you run the script from the adaxes console, then everything works, but if you run the command from the web interface ... the script, you can see that the value is empty. Am I doing something wrong?

asked Nov 18, 2022 by Alvares (100 points)
0 votes
1 answer

I am relatively new, so please be patient if this has already been asked and answered - I have started looking for this information and have not yet found it in this ... patterns based on the values being entered into the form. Is that in any way achievable?

asked Apr 2, 2014 by hms.scott (220 points)
0 votes
1 answer

We've the following script we want to use in Adaxes to create as part of user creation, to ask if the user will need a AWS workspace, then asks employeetype for different ... "Error") exit(-1) } else { $Context.LogMessage("Created workspace", "Information") }

asked May 3 by Plusa (20 points)
0 votes
1 answer

Hi, When we add custom command action in UI, when a user selects 1 or more users for that custom commands, is there a way to integrate those selected users as input value into that custom command script and take action on those users.

asked Feb 5 by Renugopal (120 points)
0 votes
1 answer

Dear support, I'm trying to automate network share creations via custom commands. They idea is to create share and groups with command A and schedule ... "ADS_SCOPE_BASE" $scopeItem.Exclude = $False $scopeItem.SetInfo() $task.ActivityScopeItems.Add($scopeItem)

asked Jan 27, 2020 by Dmytro.Rudyi (920 points)
3,365 questions
3,064 answers
7,815 comments
545,264 users