Seeking guidance for the removal of inactive user

Service now11
Tera Contributor

I’m seeking guidance in setting up a solution to manage inactive users based on the following conditions:

 

Here are the conditions for removing inactive user through flow Designer and I have attached what i have implemented for this.

 

  • Conditions for removal:

    • Users where Active = false and Last Updated is more than 1 month ago.
    • If they are members of certain groups, their group memberships should be removed.
  • Users inactive for less than 1 month should remain unaffected, with all their previous groups and roles preserved.

Group memberships for removal include:

  • Specific group memberships
  • All assignment-group memberships (i.e., groups with Type = ITIL)

Additional considerations:

  • The user record itself should remain untouched.
  • Cleanup cycles should run on a weekly basis in bulk.
  • Any occurrences of cleanup should be logged for audit purposes and to allow for re-establishing an account if necessary. 

     

Servicenow11_0-1737443615336.png

 

  •  
4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Service now11 

please delete this duplicate question

If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Mark Manders
Mega Patron

Make it easy on yourself and only use this thread to get your requirement fulfilled: https://www.servicenow.com/community/itsm-forum/creating-flow-for-removal-of-inactive-users/td-p/315....

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Service now11
Tera Contributor

Hi,

 

Here, I need to remove inactive users from a specific group, and also those inactive users present in all assignment groups. I’m currently stuck on creating the conditions to achieve this.

Mark Manders
Mega Patron

Please read the answers given here: you are making your own question a mess by having the same question 3 times on the community.

Check the link I shared earlier. All the answers you need are already in there and if you are still stuck, be clear where you are stuck.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark