Need Assistance Automating Assignment Group Cleanup in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Team,
I’m looking for guidance on implementing an automated cleanup process for Assignment Groups in ServiceNow. Below are the conditions we need to validate as part of the cleanup activity (to be run quarterly):
Cleanup Conditions Required:
- Groups with no members or only inactive members
- No tickets (INC, SR, PRB, CHG) assigned in the last 12 months
- Groups where associated user records have empty usernames and no last login date
- Remove members who have been inactive for more than 12 months
- Groups with no members AND no ticket activity in the last 12 months
- Additionally, before cleanup, check whether the group is linked to any Application Service based on CMDB/CI records
- Retain groups explicitly identified as SUP or APR (these should not be deleted)
Goal:
To build a script or Flow Designer automation that can evaluate the above conditions and help with quarterly assignment group cleanup.
Request:
Has anyone implemented similar logic or automated cleanup?
Looking for suggestions on:
- Best practices
- Query logic
- Scripted approach (Business Rule/Scheduled Script)
- Potential risks
- Sample scripts or pseudocode
IF POSSIBLE, PLEASE ATTACH SCREENSHOTS OF CONFIGURATION FOR BETTER UNDERSTANDING .
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You already asked this question: https://www.servicenow.com/community/developer-forum/automate-quarterly-assignment-group-cleanup-bas...
What did you try and where are you stuck? The Community is here to assist, not to do your job for you. How did you get to be a Mega Sage?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

