Skip to content

yammer group user add

Adds a user to a Yammer Group

Usage

yammer group user add [options]

Options

Option Description
--help output usage information
--id <id> The ID of the group to add the user to
--userId [userId] ID of the user to add to the group. If not specified, adds the current user
--email [email] E-mail of the user to add to the group
-o, --output [output] Output type. json,text. Default text
--pretty Prettifies json output
--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 Office 365 CLI the permission to the Yammer API. To do this, execute the cli consent --service yammer command.

If the specified user is not a member of the network, the command will return an HTTP 400 error message.

Examples

Adds the current user to the group with the ID 5611239081

yammer group user add --id 5611239081

Adds the user with ID 66622349 to the group with the ID 5611239081

yammer group user add --id 5611239081 --userId 66622349

Adds the user with e-mail suzy@contoso.com to the group with ID 5611239081

yammer group user add --id 5611239081 --email suzy@contoso.com