I have to create custom flow action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 07:41 AM
"Add to Common Users Group"
Graph API
/ServiceNow script
Description:
Add the user to group: <II Card-SG-<Service>-Commoolisers if not already a member.
If the group does not exist, continue execution.
Group Naming Convention:
<GroupName> <IT_Card>-SG-<Service>-CommonUsers
Graph API: Get Group by Display Name
GET https://graph.microsoft.com/v1.0/groups?$filter=displayName eq *(GroupName
Graph API: Add Member to Group
POST https://graph.microsoft.com/v1.0/groups/{group-id)/members/$ref
"@odata.id":
"https://graph.microsoft.com/v1.0/directory@bjects/(user-id}" {
Exception:
Flow will throw error if API doesn't return Value. A log is added to the request message.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 09:50 AM
HI @NIKHILL72091080 ,
What's your ask here?? do need the flow skeleton or integration assistance?
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 09:43 PM
Yes we need to create Custom Flow action for Graph API we have to add user to IT_Card

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2025 10:22 AM
Hi @NIKHILL72091080 ,
Ok, Create a action, use Rest step for different actions, plug them to the flow and enable error handling.
Action Step:
Error Handling in the flow:
Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025