0 votes

Hello!

how do i manage do get adaxes to remove all groups from the user after one month?

We have a Business Rule where you can add an end of Date when the Account expires.

2023-06-14_08h49_43.png After that we want that after 1 month all User groups are removed, but for whatever reason that does not work.

Am i doing something wrong here? Without the + 1M in value field the powershell script works but not with the +1 Month. 2023-06-14_08h51_05.png

Thanks for your help!

by (140 points)
edited by

1 Answer

+1 vote
by (272k points)

Hello,

To achieve the desired, use a scheduled task like below. image.png Condition settings image.png

0

Thank you very much!

Related questions

0 votes
1 answer

Currently, when I disable a user account in Adaxes, the group memberships of the user remain intact. I'd like to automate the removal of group memberships such as distribution ... a list of groups/DL that the user was previously in and removed from. Thanks!

asked Nov 3, 2021 by jayden.ang (20 points)
0 votes
1 answer

I have a scheduled task that runs a Powershell script against an AD group, "Group 1". I need to get all of the members of Group 1, and add them to Group 2. The ... identity in the error message start with 'user;'? What is the correct way to accomplish this?

asked Aug 27, 2019 by ngb (220 points)
0 votes
1 answer

HI Support, I'm looking for a business Rule that remove a user from a couple of groups after the User is added to a group. ie 1. The User MaxMi is added to the ... not able to create a powershell scripts for removing the added user from the other Groups. Thx,

asked Jan 4, 2016 by Napoleon (700 points)
0 votes
1 answer

I have a feild called Decommissioned Date and I can not figure out how to run a scheduled task the day after that date. So If an account got decommissioned today I want the task to run tomorrow.

asked Jan 9, 2020 by hgletifer (1.3k points)
0 votes
1 answer

goal is to copy groups from one user to another during the crete user process. I created a variable on the create user form to input the UPN of the ... primaryGroupToken") -eq $primaryGroupId) { continue } $group.Remove($Context.TargetObject.AdsPath) } }

asked Nov 30, 2021 by Derek.Axe (480 points)
3,351 questions
3,052 answers
7,791 comments
545,087 users