yammer group user add
Adds a user to a Yammer Group
Usage
m365 yammer group user add [options]
Options
--groupId <groupId>
The ID of the group to add the user to
--id [id]
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
-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 isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
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.
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
m365 yammer group user add --groupId 5611239081
Adds the user with ID 66622349
to the group with the ID 5611239081
m365 yammer group user add --groupId 5611239081 --id 66622349
Adds the user with e-mail to the group with ID 5611239081
m365 yammer group user add --groupId 5611239081 --email suzy@contoso.com
Response
The command won't return a response on success.