Skip to main content

yammer user get

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


m365 yammer user get [options]


-i, --id [id]

Retrieve a user by ID

--email [email]

Retrieve a user by e-mail

-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 for more information and examples.

-o, --output [output]

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


Runs command with verbose logging.


Runs command with debug logging.



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.

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


Returns the current user

m365 yammer user get

Returns the user with the ID 1496550697

m365 yammer user get --id 1496550697

Returns an array of users matching the e-mail

m365 yammer user get --email

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

m365 yammer user get --email --output json


"type": "user",
"id": 172006440961,
"network_id": 5897756673,
"state": "active",
"job_title": "",
"location": null,
"interests": null,
"summary": null,
"expertise": null,
"full_name": "johndoe",
"activated_at": "2021/10/08 11:45:32 +0000",
"auto_activated": false,
"show_ask_for_photo": true,
"first_name": "",
"last_name": "",
"network_name": "Contoso",
"network_domains": [
"url": "",
"web_url": "",
"name": "admvalo",
"mugshot_url": "",
"mugshot_redirect_url": "",
"mugshot_url_template": "{width}x{height}",
"mugshot_redirect_url_template": "{width}x{height}/no_photo.png",
"birth_date": "",
"birth_date_complete": "",
"timezone": "Pacific Time (US & Canada)",
"external_urls": [],
"admin": "true",
"verified_admin": "true",
"m365_yammer_admin": "false",
"supervisor_admin": "false",
"o365_tenant_admin": "true",
"can_broadcast": "true",
"department": null,
"email": "",
"guest": false,
"aad_guest": false,
"can_view_delegations": false,
"can_create_new_network": false,
"can_browse_external_networks": false,
"reaction_accent_color": "none",
"significant_other": "",
"kids_names": "",
"previous_companies": [],
"schools": [],
"contact": {
"im": {
"provider": "",
"username": ""
"phone_numbers": [],
"email_addresses": [
"type": "primary",
"address": ""
"has_fake_email": false
"stats": {
"updates": 0,
"following": 0,
"followers": 0
"settings": {
"xdr_proxy": ""
"show_invite_lightbox": false,
"age_bucket": "notSet"