Skip to content

yammer user get

Retrieves the current user or searches for a user by ID or e-mail


yammer user get [options]


Option Description
--help output usage information
-i, --userId [userId] Retrieve a user by ID
--email [email] Retrieve a user by e-mail
--query [query] JMESPath query string. See for more information and examples
-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



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.

All operations return a single user object. Operations executed with the email parameter return an array of user objects.


Returns the current user

yammer user get

Returns the user with the ID 1496550697

yammer user get --userId 1496550697

Returns an array of users matching the e-mail

yammer user get --email

Returns an array of users matching the e-mail in JSON. The JSON output returns a full user object

yammer user get --email --output json