Skip to content

yammer message list

Returns all accessible messages from the user's Yammer network

Usage

yammer message list [options]

Options

Option Description
--help output usage information
--olderThanId [olderThanId] Returns messages older than the message ID specified as a numeric string
--threaded Will only return the thread starter (first message) for each thread. This parameter is intended for apps which need to display message threads collapsed
-f, --feedType [feedType] Returns messages from a specific feed. Available options: All|Top|My|Following|Sent|Private|Received. Default All
--groupId [groupId] Returns the messages from a specific group
--threadId [threadId] Returns the messages from a specific thread
--limit [limit] Limits the messages returned
-o, --output [output] Output type. json|text. Default text
--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 consent --service yammer command.

Feed types

  • All: Corresponds to “All” conversations in the Yammer web interface
  • Top: The algorithmic feed for the user that corresponds to "Top" conversations. The Top conversations feed is the feed currently shown in the Yammer mobile apps
  • My: The user’s feed, based on the selection they have made between "Following" and "Top" conversations
  • Following: The "Following" feed which is conversations involving people and topics that the user is following
  • Sent: All messages sent by the user
  • Private: Private messages received by the user
  • Received: All messages received by the user

Examples

Returns all Yammer network messages

yammer message list

Returns all Yammer network messages older than the message ID 5611239081

yammer message list --olderThanId 5611239081

Returns all Yammer network thread starter (first message) for each thread

yammer message list --threaded

Returns the first 10 Yammer network messages

yammer message list --limit 10

Returns the first 10 Yammer network messages from the Yammer group 312891231

yammer message list --groupId 312891231  --limit 10

Returns the first 10 Yammer network messages from thread 5611239081

yammer message list --threadId 5611239081  --limit 10

Returns the first 20 Yammer message from the sent feed of the user

yammer message list --feedType Sent  --limit 20