Skip to main content
Solved

Issue with Azure Orch - Remove Group Member


PatrickMurphy
Skilled Expert
Forum|alt.badge.img+9

We utilize several Azure orchestration functions without issue however when trying to use the Remove Group Member functions which requires the group object ID and an email address. I continue to get the following error returned: “Unsupported referenced-object resource identifier for link property 'members'.”

I’ve attempted when the group is a security group or 365 Group.  I’ve tried with the user in the group and not in the group. In all scenarios I get the same error message.

Now consequently the next step in my workflow is to add the user to a different group.  Which works fine, however if the user is already in the group and I’m trying to add them again (testing logic) I get the same error message “Unsupported referenced-object resource identifier for link property 'members'.”.

Anyone able to use the Remove Group Member and it works?  What am I missing?

Best answer by PatrickMurphy

With help of Support I resolved this.

Description of function:

Remove Azure AD User from Group

Inputs
user_object_id: Username of the user
group_object_id: Group ID of the group

Even though the function says username of the user as input, it doesn’t work.  You must first call Get User Details by Username, then pass the Azure ID that is returned to the Remove Group Member.  It doesn’t like username must be ID.  Then the solution works.

View original
Did this topic help you find an answer to your question?

4 replies

PatrickMurphy
Skilled Expert
Forum|alt.badge.img+9
  • Author
  • Skilled Expert
  • 110 replies
  • Answer
  • October 9, 2023

With help of Support I resolved this.

Description of function:

Remove Azure AD User from Group

Inputs
user_object_id: Username of the user
group_object_id: Group ID of the group

Even though the function says username of the user as input, it doesn’t work.  You must first call Get User Details by Username, then pass the Azure ID that is returned to the Remove Group Member.  It doesn’t like username must be ID.  Then the solution works.


cjvh
Community Debut
  • Community Debut
  • 1 reply
  • June 5, 2024
PatrickMurphy wrote:

With help of Support I resolved this.

Description of function:

Remove Azure AD User from Group

Inputs
user_object_id: Username of the user
group_object_id: Group ID of the group

Even though the function says username of the user as input, it doesn’t work.  You must first call Get User Details by Username, then pass the Azure ID that is returned to the Remove Group Member.  It doesn’t like username must be ID.  Then the solution works.

 


Great. Thank you. Worked for me also. 


alyssia.correa
Community Manager
Forum|alt.badge.img+8
  • Community Manager
  • 618 replies
  • September 12, 2024

Glad to hear @Mohammed El-Cheikh :)


Reply