Remove members from; Security Groups, Mail-Enabled Security group, Distribution lists, Office 365 groups #1643
Unanswered
mvcsharepointdev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a list of Groups IDs, which include; Security Groups, Mail-Enabled Security group, Distribution lists, Office 365 groups.
now i have a user email and the user ID. and i want to remove the user from all the groups:-
I tried using Graph API:-
and using the built-in Remove Member from group inside Power Automate:-
but both raised the same error, on distribution lists and mail-enabled groups:-
**_Cannot Update a mail-enabled security groups and or distribution list.
"error": {
"code": "Request_BadRequest",
"message": "Cannot Update a mail-enabled security groups and or distribution list.",
}_**
so based on my reading that Graph API does not support removing members from Mail-Enabled Security groups and from Distribution lists.. so if i develop an azure function that uses PnP Core SDK , will i be able to achieve this? or we will face the same issue. since PnP Core SDK mainly rely on Graph api in a way or another?
any advice how to remove those members?
Beta Was this translation helpful? Give feedback.
All reactions