Skip to main content
This script reads every member and saves them to members.csv, ready to open in Excel. It works in Windows PowerShell 5.1, which every Windows 10 and 11 computer has, and in PowerShell 7 on Windows, Mac or Linux.
members.ps1

Run it

1

Save the script

Save it as members.ps1 in a folder of its own, for example Documents\Scoutworks.
2

Open PowerShell in that folder

In File Explorer, open the folder. Type powershell in the address bar and press Enter.
3

Run it

-ExecutionPolicy Bypass lets this one script run. It does not change the settings of your computer.
Open members.csv in Excel.

Switch to your group

Change api-demo.scoutworks.app to api.scoutworks.app. Then set your key for this window only, and run the script:
PowerShell asks for the key and does not show it as you type, so it stays out of your command history. The key is gone when you close the window. It is never saved in the script. Your key needs the members:read scope.

Notes

  • Accented names look wrong in Excel? In PowerShell 7, change -Encoding UTF8 to -Encoding utf8BOM. Windows PowerShell 5.1 already adds the marker that Excel needs.
  • Other lists. Change /members and the columns. For example, Read-All '/badges?status=awarded'. The API reference lists every field.