Azure Active Directory IDs now in Yammer Data Export API
Published Feb 03 2021 12:10 AM 5,890 Views

We’re happy to announce an update to the Yammer Data Export API! Yammer Data Exports now include new columns that map Azure Active Directory IDs for Users and Groups with their corresponding Yammer Users and Groups IDs.


The new columns “Office User ID” and “Office Group ID” are added to Users.csv and Groups.csv files. This update aims to make it easy for our customers and partners to use the Microsoft Graph API and correlate Azure Active Directory users and groups IDs with their Yammer IDs for networks in Native Mode.


In this blog we’re sharing steps on how to list Azure Active Directory Group Members through Microsoft Graph and easily correlate them with Yammer Users.


First, get Azure Active Directory User and Group IDs with the Yammer Data Export API.

  1. Use the Yammer Data Export API to incrementally export content from Yammer.

  2. In the export, the Users.csv file now has a new field “Office_user_id” that contains the Azure Active Directory User ID which is mapped to its corresponding Yammer User ID.

  3. Also, the Groups.csv file now has a new column “Office_group_id” that contains the Azure Active Directory Group ID which mapped its Yammer Group ID.
    Groups CSV.png

  4. Use the Office_user_id and Office_group_id fields to correlate Azure Active Directory Users and Groups with their corresponding Yammer Users and Group IDs.

Next, use the List Members API to get a group's direct members.

  1. Create or update your Azure Active Directory Application. See this quick start guide for more information

  2. Enable the permissions Group.Read.All in the Azure Active Directory App Registrations section.
    API Permissions.png
  3. Follow the Microsoft Graph guidelines to support authentication in your application/service. For more info, please see

  4. Get a List of Members in a Group using the Microsoft Graph List Members API 
    Screen Shot 2021-02-02 at 11.24.28 PM.png


    The response displays the list of Group members with many attributes such as the user’s “id”, “userPrincipalName”, “displayName”, etc.

    Make a note of the “id” value – this value is now mapped in the Users.csv and Groups.csv files from the Yammer Data Export API.

    If there are more than 100 members, then Microsoft Graph returns a @odata.nextLink property in the response that contains a URL to the next page of results. Learn more about the List Members API here

And that's it! Now you can easily correlate Azure Active Directory User IDs from the Microsoft Graph API with their corresponding Yammer User and Group IDs from the Yammer Data Export API.


  1. Microsoft Graph Explorer:
  2. Microsoft Graph API:
  3. List Members API: 
  4. Yammer Native Mode:
  5. Yammer Data Export API:
Version history
Last update:
‎Feb 03 2021 12:10 AM
Updated by: