Support Required for Remove Assigned Groups form Microsoft Entra Server using Entra Spoke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
I am working on removing user group memberships from Microsoft Entra server based on the User ID using the Microsoft Entra ID Spoke in ServiceNow.
Currently, i have created custom action executes successfully and returns a successful response. However, the user is not being removed from the groups in Microsoft Entra ID as expected.
As part of my troubleshooting, I created a REST Message named "ServiceNow Microsoft Entra ID" and an HTTP Method called "removeUserIdGroups" to retrieve the user's group memberships from Microsoft Entra ID. Although I receive a 200 OK response, the API is returning only Dynamic Groups and not the Assigned Groups.
I am using the User ID endpoint to retrieve the user's group membership details.
Could someone please help with the following?
- How can I retrieve only the groups with the Assigned membership type?
- Is there a specific Microsoft Entra API endpoint, query parameter, or filter that can be used to exclude Dynamic Groups and return only Assigned Groups?
- Are there any additional permissions or configuration requirements that I should be aware of?
This information will help ensure that the group removal process targets only the required assigned groups and functions correctly.