Need to remove the user name from change approver field once the user is off-boarded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2024 10:12 PM
Hi Team,
Is there any feasibility, so that once the user (sys_user) is disabled in service now his name should also get removed from the change approver list of sys_user_group table. Any possibilities to automate this process?
REgards,
Sofiya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2024 10:27 PM
I think that happens as part of OOB already, please make user inactive and check once.
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2024 10:31 PM
Hi,
Thanks for your reply. But this will not happen automatically that's while we are looking for a customization.
Regards,
Sofiya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2024 10:44 PM - edited 06-22-2024 10:47 PM
Hi Sofiya,
You can try to run a scheduled job or create a flow to pull all the inactive users, loop through them and look up to active approvals for change records and turn it to no longer required. Further, you can find all the associated groups in the sys_user_grmember table for that user and remove the associations.
Please see if this works for you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2024 01:44 AM
Hi @Sofiya Perumal ,
As suggested by @SonamRamesT you can create a scheduled job that removes all the inactive users from group on a scheduled bases.
or you can create a business rule or flow on update of the user is active false then you can do a lookup to all the groups the user belongs to and remove that user from that group.
take a lookat this :
I hope this helps...
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....