Add a user from ServiceNow to Azure AD group via flow designer

Mishu
Tera Expert

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 

 

Mishu_0-1706171758669.png     

Mishu_1-1706171977409.png

 

 

4 REPLIES 4

Mishu
Tera Expert

@Ankur Bawiskar ...Could you suggest here ?

Tai Vu
Kilo Patron
Kilo Patron

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.

Add User to Group input variablesVariable Description
user_idObject ID (GUID) of the member to be added.
group_idObject ID (GUID) of the target group.

 

Add User to Group Azure AD activity

 

Cheers,

Tai Vu

Hi Timi,

 

I did it the same way but no luck ! 

 

Mishu_0-1706519067975.png

 

Amit Verma
Kilo Patron
Kilo Patron

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.