Export SharePoint group membership names and email addresses to Excel

Before we start, if you’re just wanting to email all members of the group you can “select all” then choose “E-Mail Users” from the action menu when viewing the group membership within SharePoint. This opens an Outlook window with all the addresses pre-populated.

But, if you still need an excel sheet of membership for another purpose (perhaps to format a sign-in sheet, generate documents with mail merge, share the list with others, etc.) follow these steps:

  1. With the group open in SharePoint, copy the URL and note the ID number at the end of the URL
  2. Open a new excel workbook
  3. From the “Data” tab, select “New Query” –> “From Other Sources” –> “From OData Feed
  4. Paste the group URL in the prompt but delete everything after the site address and replace with the following, replacing “6” with your group’s ID from step 1
    /_api/Web/SiteGroups/GetByID(6)/Users
  5. When prompted for login credentials you’ll use “Windows” for on-prem/server and “Organizational account” for O365.
  6. Click “Edit” once the group loads so we can choose which columns to keep/delete
  7. Ctrl+click the column headers you want to keep
  8. Right-click a header of a column you’re keeping and select “Remove Other Columns”
  9. Close and Load
  10. You should now see your group membership and email addresses (and any other fields you kept). Save this somewhere and, if updates are made in the future, just click “Refresh all” to bring in new members and remove old.

Updated 8/8/2019: Added step 5 to show the login credentials prompt.

3 Replies to “Export SharePoint group membership names and email addresses to Excel”

  1. Simply AMAZING!! I have looked for a solution to pull all names/emails from a sharepoint group for years and this was so clear and simple! So thankful that you posted this and I found it! Thank you!

  2. This is great, I’ve been able to take this page and export my sharepoint user list, then some vba code to rearrange into a master list showing all users, and which groups they are in.

    I’d like to take this one step further though and be able to go through each library on my site and get an export of which groups have permissions to which libraries.

Leave a Reply to bumanod Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.