Skip to main content

yammer group user remove

Removes a user from a Yammer group

Usage

m365 yammer group user remove [options]

Options

--groupId <groupId>

The ID of the Yammer group

--id [id]

ID of the user to remove from the group. If not specified, removes the current user

-f, --force

Don't prompt for confirmation before removing the user from the group

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Remarks

caution

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 --groupId 5611239081

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

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

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

m365 yammer group user remove --groupId 5611239081 --id 66622349 --force

Response

The command won't return a response on success.

CTRL + M