0 votes

Hello,

We need to be able to put the ticket number into the custom command 'Deprovision'. Action -> Modify the user: set description to [%ticketNumber%] Deprovisioned on %datetime% by %initiator%. Is it possible to query/set attributes within a Custom Command similar to Read-Host in Powershell? At the moment we use adminDescription to store the ticket number. We don't want 2 steps in our deprovision process

  • set adminDescription with ticket number
  • run Custom Command 'Deprovision'

regards Helmut

by (510 points)
0

Hello,

Sorry for the confusion, but we are not sure we understand the desired behavior. Do you need to input the ticket number manually when running the Custom Command or it should be taken from a specific property of the target user? Any additional details and live examples will be very helpful.

0

Hello,

"to input the ticket number manually when running the Custom Command" is what we wanted to do - but I found no solution. So I decided to do it like described in this articel (https://www.adaxes.com/questions/1685/ticket-number-required-for-all-activities?show=1685#q1685) At the moment deprovisioning of a user are 2 steps like written in my question -setting adminDescription and starting Custom Command. User will be deleted 90 days later with a scheduled task. Our helpdesk often "forget" step 1 so I have no reference in case of recovery/enabling the user.

regards Helmut

1 Answer

0 votes
by (270k points)

Hello,

The thing is that by the time the question you referenced was asked, Custom Commands did not have parameters. The feature was introduced in Adaxes version 2018.2. For details on creating Custom Commands with parameters, have a look at the following tutorial: https://www.adaxes.com/tutorials_ActiveDirectoryManagement_CreateCustomCommand.htm. Parameters usage is described on step 4 of the tutorial. You will need to add an Edit box parameter to your Custom Command and make sure that empty value is not allowed for it. The parameter will be used to enter a ticket number when running the command and there will be no way for the command to be executed without specifying a value for the parameter.

Related questions

0 votes
1 answer

I added the Password last set field to the Admin view but when I click on edit it allows the admin user to change the value. Adaxes correclty handel Bad Password time and Bad password ... last set, so I guest there is a way but I can not find it. Thanks you

asked Dec 19, 2019 by tomlaf (60 points)
0 votes
1 answer

Automation of user creation based on ServiceNow ticket creation.

asked Jan 24, 2022 by tdetmer (20 points)
0 votes
0 answers

I can get the name ("cn") of the group but I am getting null for hubId ("adm-CustomAttributeText1"). What am I doing wrong here? var parentContainer = (IADsContainer) ... hubId = group.Get("adm-CustomAttributeText1").ToString(); } catch { } } } Thanks!

asked Dec 6, 2018 by mark.munson (120 points)
0 votes
1 answer

Hi, I followed this example: https://www.adaxes.com/sdk/IAdmTop6.html, but because the Custom Command is disabled, I get the following error message: System.Management.Automation ... if I enable the Custom Command. I am using Adaxes 2018.2 Best Regards Martin

asked Feb 19, 2020 by Martin (100 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)
3,326 questions
3,026 answers
7,727 comments
544,678 users