Skip to content

yammer group user remove

Removes a user from a Yammer group

Usage

m365 yammer group user remove [options]

Options

--id <id>
The ID of the Yammer group
--userId [userId]
ID of the user to remove from the group. If not specified, removes the current user
--confirm
Don't prompt for confirmation before removing the user from the group
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text. Default text
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Remarks

Attention

In order to use this command, you need to grant the Azure AD application used by the CLI for Microsoft 365 the permission to the Yammer API. To do this, execute the cli consent --service yammer command.

Examples

Remove the current user from the group with the ID 5611239081

m365 yammer group user remove --id 5611239081

Remove the user with the ID 66622349 from the group with the ID 5611239081

m365 yammer group user remove --id 5611239081 --userId 66622349

Remove the user with the ID 66622349 from the group with the ID 5611239081 without asking for confirmation

m365 yammer group user remove --id 5611239081 --userId 66622349 --confirm