I can see Action "Office 365 add user to group" but not "Office 365 remove user from group".
Please let me know how to achieve it.
Hi! I am achieving it using "Web Request" action configured in the following way:
<?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <RemoveUserFromGroup xmlns="http://schemas.microsoft.com/sharepoint/soap/directory/"> <groupName>NAME OF GROUP TO REMOVE USER FROM</groupName> <userLoginName>USER LOGIN THAT IS BEING REMOVED</userLoginName> </RemoveUserFromGroup> </soap:Body> </soap:Envelope>
That's it. User login should be in the normal format with claims: i:firstname.lastname@example.org, or if you are using a People variable, then use "advanced lookup" and select "Login".
I hope this helps.
you can notice that every external user has its own tenant-related login name, built in the following way:
So therefore you can try with that, but I haven't tried that so cannot tell if it works or not.