Add a user from ServiceNow to Azure AD group via flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 12:41 AM
I have to add the user from a variable(Requested For ) in the catalog to the Azure Ad group, I have tested the connection and created the below flow designer but for some reason I am unable to add the user to AD group .
Please suggest/help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 12:43 AM
@Ankur Bawiskar ...Could you suggest here ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 12:52 AM
Hi @Mishu
We need to ensure that the User ID corresponds to the User Object ID in Azure AD, similar to the Group Object ID shown in your screenshot.
user_id | Object ID (GUID) of the member to be added. |
group_id | Object ID (GUID) of the target group. |
Add User to Group Azure AD activity
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2024 01:04 AM
Hi Timi,
I did it the same way but no luck !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2024 01:12 AM
Hi @Mishu
Can you please try the below troubleshooting steps :
1. Check if the group ID provided by you is valid and doesn't have any whitespaces.
2. Check if the user account you have used to create connection to the AD has required permissions to add user to group.
3. requested_for variable will be giving a reference of the user record. Please check and pass valid input to the action. It expects username(samaccountname) to be provided as an input but you are passing a user record reference.
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.