0 votes

I need some assistance combining 1: https://www.adaxes.com/questions/9428/daily-scheduled-task-to-disable-inactive-users

With 2: https://www.adaxes.com/questions/1509/inactive-users

For 1: I am struggling to figure out which condition I pick for number 1, and how I get the "Modify user: disable the account." Do I also need to set up a custom paramater for $days ?

For 2: "less or equal" isn't an option.

ago by (140 points)
0

Hello,

Sorry for the confusion, but we are not sure what exactly you need to achieve. Please, describe the desired behavior in all the possible details with live examples.

Also, please, provide us with a screenshot of the Multi-server environment dialog. The dialog displays how many Adaxes services you have and what their versions are. For information on how to view it, see https://www.adaxes.com/help/MultiServerEnvironment. You can post the screenshot here or send to us at support@adaxes.com.

0

I am trying to set up a Scheduled Task, that calls a Custom Command. I'd like this command to check if an account(s) has been inactive for more than 90 days. If so, I want Adaxes to disable the accounts (s). I found this link but am having trouble with getting the code to work: https://www.adaxes.com/questions/9428/daily-scheduled-task-to-disable-inactive-users

I'd also like to add a little wiggle room, so if an account is enabled then it gives 2 days time for someone to sign in before disabling again. I found this link for that, but can't locate the same settings: https://www.adaxes.com/questions/1509/inactive-users

image.png

1 Answer

0 votes
ago by (294k points)

Hello,

Have a look at the following tutorial: https://www.adaxes.com/help/AutomaticallyDeprovisionInactiveUsers. If we understand your desire correctly, you just need a scheduled task, no custom commands. If you still have issues configuring the workflow, please, give us a live example of the desired behavior as it is not very clear about the wiggle room.

Also, we recommend you not to use old threads in this Q&A as proof of concept. Functionality changes and such threads can be misleading.

0

Thank you. I made this: image.png

The "wiggle room" condition I need is for users that we re-enable. If I re-enable a user, I want the user to have 2 days to sign in before they become disabled again.

+1

Hello,

In this case, you need to use a business rule triggering After enabling a user account and your scheduled task will look like below.

Business rule image.png

Scheduled task image.png

In the rule action and task action/condition, you can use any of Adaxes custom date attributes (e.g. CustomAttribtueDate1) not used in other workflows. Pay attention, that the business rule will only work if users are re-enabled via Adaxes.

0

Thank you! I used the built in paramaters for the Scheduled Task and that is good enough.

Related questions

0 votes
1 answer

I am trying to use a script to set a users AccountExpires attribute. However, I want there to be an approval sent and I am ... = $False $Context.SubmitForApproval($approvers, $managerOfRequestorIsApprover, $false, $false, $false) }

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

I am trying to create a new user, whose emailaddress is directly associated with the company, but it is simply not updating. I created a business rule to be exceuted ... should be accordingly. But after the user is created it says no operation executed. Thanks

asked Mar 9, 2022 by Kamini (80 points)
0 votes
1 answer

I've enabled the "Account Expiration Notifier" builtin scheduled tasks. Currently, I'm testing it so I have "If account will expire in less than 300 days", it will send an ... SMTP settings are correct, seeing as I get the test send. What's going on here?

asked Jan 4, 2021 by keecit (60 points)
0 votes
1 answer

Hello, I cannot see all objects from the Adaxes Service Administration console and do not understand why. I log with a Service administrazors that have full access. There is no ... for this users and as far as I know no restriction. Thanks for your help.

asked Dec 11, 2019 by tentaal (1.1k points)
0 votes
1 answer

We have a customized the help desk security role to allow only resetting passwords and unlocking accounts. We don't want them to be able to enable accounts that are disabled ... writing to certain "account options"? It seems that its an all or nothing setting.

asked Nov 14, 2019 by mark.it.admin (2.3k points)
3,590 questions
3,279 answers
8,308 comments
548,187 users