How to add "users to azure groups" in flow designer

spandana kalla
Tera Contributor

Hi,

 

 

I am new to integration and need assistance with adding a user to Azure groups through service catalogs using Flow Designer. The user is specified as the “requested for” person in the variable. To achieve this, we need to retrieve the “User ID” from Azure and pass it to Flow Designer. Could anyone guide me on how to make a REST call to fetch the “User ID” in Flow Designer for the action of adding the user to an Azure group?

 

Thanks,

Spandana.

6 REPLIES 6

dreinhardt
Tera Sage

Hi @spandana kalla,

 

I would recommend to use the Azure AD spoke (Microsoft Entra ID Spoke) to add users to a AD group.

The added flow "Add User to Group" is a OOTB flow of the Entra ID spoke
Microsoft Entra ID Spoke (formerly Microsoft Azure Active Directory spoke) (servicenow.com)

 

dreinhardt_0-1726860427959.png

 

The actions "Look up Group", "Is User in Group" and "Add User to Group" are part of the spoke.

 

Best, Dennis

Should my response prove helpful, please consider marking it as the Accepted Solution/Helpful to assist closing this thread.

Hi Dreinhardt,

 

We had already added the "Microsoft Entra ID Spoke" action, but I don't know the exact process what to give in the User ID. Can you please help.

 

Thanks,

Spandana.

Hi @spandana kalla,

 

please use the email address of the “requested for” as user_id for the Entra ID spoke.

 

Best, Dennis

Should my response prove helpful, please consider marking it as the Accepted Solution/Helpful to assist closing this thread.

mfhaciahmetoglu
Mega Sage

Hi @spandana kalla ,

You need to first use action "look up user" and pass as User Principal Name the email address of the requested_for. And then use the output (userID) as the input for adding user.

Let me know if that works for you!

Best,

Firat