Skip to main content
  • For: group lead volunteers and group admins
  • You get: every adult’s DBS check, red, amber or green, and a monthly email of what runs out in the next 60 days
  • Time: about ten minutes
  • Scopes: adults:read and adults.compliance:read
This recipe adds a DBS checks tab to a Google Sheet. It lists every adult volunteer in your group with their DBS check status and expiry date, and colours each row:
  • Red: the check has expired, or no check is recorded.
  • Amber: the check expires within 60 days, or a new one is applied for.
  • Green: the check is fine.
On the first of each month, it can email the group lead volunteer the checks that expire in the next 60 days. It uses Google Apps Script. It takes about ten minutes.
Scoutworks does not hold training records yet, so this sheet covers DBS checks only. Keep tracking training where you track it today.

1. Add the script

In your Google Sheet, choose Extensions → Apps Script. Delete what is there, paste the script below and choose Save.
Code.gs

2. Add your key

In the script editor, choose Project Settings (the cog), then Script Properties → Add script property. Property: SCOUTWORKS_API_KEY. Value: the sandbox key to try it, or your own key. Add a second property, SEND_TO, with the group lead volunteer’s email address. Put a comma between addresses to send it to more than one person. Without it, the email goes to you.

3. Run it

Choose dbsChecks in the toolbar and press Run. Open the DBS checks tab. To get the email too, run emailExpiringChecks once, so Google asks for permission to send email. Then choose Triggers (the clock), then Add Trigger. Function: emailExpiringChecks. Event source: Time-driven. Type: Month timer. Day: 1st. Choose Save. The email lists the checks that expire in the next 60 days, and any that have already expired.

4. Switch to your group

Change api-demo.scoutworks.app to api.scoutworks.app, and replace the sandbox key with your own. Your key needs adults:read and adults.compliance:read. The second scope adds each adult’s DBS check status and expiry date. Give it no other scope.
DBS status is sensitive. Keep the sheet private to the people who manage checks, and send the email only to them. The API never returns a certificate number or anything a disclosure says.

Notes

  • The list holds everyone with a current group admin, leader or trustee role, as your Team page shows them. Young leaders are under 18 and need no DBS check, so one with no other role is left off. A parent with no such role is not on it either.
  • The sheet works out the 60 days itself, from the expiry date. The API’s own expiring status starts 90 days before expiry. To warn earlier, change WARN_DAYS.
  • A check is recorded in Scoutworks. Fix a wrong date or status in Scoutworks, not in the sheet: the next run overwrites the sheet.