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 (301k 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

The use case we are looking for is providing a list of titles for users to choose from when initiating a re-hire. We already have a title property pattern established and would ... that we can manage the list in one place. Let me know and as always, thanks.

asked Nov 22, 2024 by msheppard (790 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 (130 points)
0 votes
0 answers

Issue The Active Directory Federation Services (ADFS) master key that decrypts ADFS certificates is stored in Active Directory, in the thumbnailPhoto attribute of a contact object ... ,CN=Program Data,DC=domain,DC=com container via native AD access control.

asked Mar 28 by Adaxes (580 points)
3,677 questions
3,361 answers
8,494 comments
549,328 users