Remove-YmGroupMembership [-GroupId] <int> [-UserId <int>]
System.Int32
Parameter | Type | Required | Description |
---|---|---|---|
GroupId | int | true | The ID of the group where a user gets removed from |
UserId | int | false | The ID of the user to leave the group |
PS:> Remove-YmGroupMembership -GroupId 1234567
Removes the currently authenticated user from the group with the ID 1234567.
PS:> Remove-YmGroupMembership 1234567 -UserId 2345678901
Removes the user with the ID 2345678901 from the group with the ID 1234567.