This is only to disable user account

by (20 points)

1 Answer

by (16.8k points)
0 votes

Hello Erik,

To acheive the required, you can use a custom date attribute (e.g. adm-CustomAttributeDate1) and a scheduled task configured for the User object type. The custom date attribute will be used to specify the date when the account will be disabled. You can change the display name of the custom attribute to make it user friendly. The task condition will check whether the custom date attribute is before the current date/time. If the condition is met, the task will disable the user. The task configuration should look like this: image.png

Related questions

Hello, you helped us with a script to set the oof-message. Now we want to know, if it's possible to activate/deactivate the mail-forwarding option time-based. In the ... deactivate it accordingly on "param-abw-ende" Can you help me with that? Thanks Carsten

asked Nov 17, 2022 by lohnag (160 points)
0 votes
1 answer

I'd like to return the litigation hold attribute values if the script returns true. How can I do this?

asked Aug 26 by GronTron (390 points)
0 votes
1 answer

I want to add a custom column in a report that displays members of a group that shows the age of the user account in days. Is that possible?

asked Oct 23, 2024 by msheppard (880 points)
0 votes
1 answer

I want to remove special characters on the onboarding web form for username and mail before clicking Finish. Using a script like on the rule "Before User Creation" seems to to do the change to late and you can not verify the email adress before created.

asked Dec 27, 2021 by joem (20 points)
0 votes
1 answer

When the UPN being created is the same as an existing one except for the case. For instance, the new UPN is sally.fields but there's an existing Sally.Fields. The ... but then fails to create the AD account indicating that the UPN is not unique forestwide.

asked Jul 13, 2022 by sandramnc (870 points)
0 votes
0 answers