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.members.csv in Excel.
Switch to your group
Changeapi-demo.scoutworks.app to api.scoutworks.app. Then set your key for this window only, and run the script:
members:read scope.
Notes
- Accented names look wrong in Excel? In PowerShell 7, change
-Encoding UTF8to-Encoding utf8BOM. Windows PowerShell 5.1 already adds the marker that Excel needs. - Other lists. Change
/membersand the columns. For example,Read-All '/badges?status=awarded'. The API reference lists every field.