Flow that automates adding/removing group type to a user group after Request from Catalog Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2025 12:43 AM
Hi all,
i need some help. We have a catalog item for users to request if they want to add or remove group types like itil etc. The user puts the information in variables and after that i call them in the flow.
And how can i change the group type? If i select the table user group there is only a field Type. And in this field i cannot enter either the variable or the sysid of the variable.
Has someone a solution? Or an idea how i can automate it. It must be via Catalog Item the request.
Thanks
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2025 03:09 AM
Ok i found the problem.
It was a really stupid mistake on my part. I didn't see that the flow wasn't activated 🙈
So it works now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2025 05:37 AM
Hi @AlexanderH23091 ,
You can absolutely automate adding or removing a group type on a user group from a catalog request by having a Flow that looks up the target sys_user_group, then using a script step (or custom action) inside that flow to read the existing type list (which is a comma separated list of sys_ids), add or remove the desired type sys_id, dedupe the list (e.g. with ArrayUtil.unique()), and update the type field, that way the flow dynamically handles both add/remove actions based on the variable inputs....
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
