0 votes

So I have custom forms for onboarding / offboarding users. We sometimes know 2-3 weeks in advance so I would like to add the ability to schedule these for the future. I added a a custom date attribute to the forms but I'm not sure how I integrate them.

If I add a statement at the beginning of the on/offboarding task to check the custom / if the date isn't today then do nothing, but how do I then kick off a scheduled task to take all the data that was inputed and then process the request on the given date?

by (120 points)

1 Answer

0 votes
by (288k points)

Hello,

Unfortunately, there is no such possibility for user creation as there is just no way to preserve the data anywhere. As an option, you can have a CSV file with users to be created and a scheduled task with a script. The script will only create accounts when the date in the corresponding column is today. You can use Script 3: Only create new users from the following article as base for yours: https://www.adaxes.com/script-repository/import-new-and-updated-users-from-csv-file-s246.htm.

As for use deprovisioning, you can have a Web interface form with only a single custom date attribute (e.g. CustomAttributeDate1). The attribute will be used to specify the date when a user must be deprovisioned. In this case, your scheduled task will look like the following: image.png

0

Thanks. With out deprovisioning we have a few fields that need to be completed in the form - using this method are the fields saved? I.e we have a section to enter in the IT ticket number and who gets e-mail access. If I set a date in the future and enter in the ticket number and e-mail rights, will those variables be picked up and used on the selected date?

0

Hello,

That is something that you can use other Adaxs custom attributes for. The values specified I the form will be set as for regular AD properties and will be available in the scheduled task.

Related questions

0 votes
1 answer

Good morning, My Training team has requested the ability to see a "new hire" list containing the last 50 employees hired by my organization. They wish to navigate to ... to get started on this task. Has anyone done something similar your environments? Thanks!

asked Apr 6, 2018 by cda0822 (50 points)
0 votes
1 answer

If I have a scheduled task powershell script that's targeting an OU of users and in that script I were to call $context.cancel in the case of an error happening for a single ... it cancel the entire scheduled tasks and it won't run for other users in that OU?

asked Oct 18 by wrichardson (20 points)
0 votes
1 answer

Hello, I've created a custom command to run a script which will send an email alert if the script encounters an error. I have the command set to run as a scheduled task ... script that sends it: Custom Command Name: Task Name: Time: Error Message: Thank you.

asked Sep 17 by GronTron (320 points)
0 votes
1 answer

Similar to Powershell's "whatif"? I'd like to enable this scheduled task - But would like to confirm who will actually be affected before enabling this. Is there at least ... objects in the console log? I could run that before adding the 'modify' actions back.

asked Jun 25 by msinger (210 points)
0 votes
1 answer

I want to create a scheduled task to disable a user if he is inactive for 30days, the task must check inacivity o AD and Azure.

asked May 16 by johanpr (120 points)
3,537 questions
3,227 answers
8,219 comments
547,728 users