Share via

Powershell MgGraph remove-MgUserJoinedGroup failed

Jacey Chen 1 Reputation point
2022-01-17T02:11:03.737+00:00

Remove user from one group failed with error: Remove-MgUserJoinedGroup_Delete: {"Message":"The OData path is invalid."}
cmdl:Remove-MgUserJoinedGroup -GroupId 'GroupId' -UserId 'UserId'

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph

1 answer

Sort by: Most helpful
  1. Zehui Yao_MSFT 5,881 Reputation points
    2022-01-17T08:26:49.513+00:00

    Hello @Jacey Chen , after my tests, I encountered the same problem as you, and finally I found that using AD powershell can be used as an alternative to achieve the same function. Here is the official document for your reference : https://learn.microsoft.com/en-us/powershell/module/azuread/remove-azureadgroupmember?view=azureadps-2.0

    165500-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.