Skip to main content
Your group’s team can live in another system too: a spreadsheet, a volunteer rota, or the Scouts membership system. With the user endpoints, a script keeps Scoutworks in step with it. Each change goes through the same checks as Settings → Users in Scoutworks.

What you need

  • A key with users:read. Add users.contacts:read to see email addresses and phone numbers.
  • users:write to invite, change, suspend and remove people. It needs users:read too.
  • access:read to read access policies, each person’s policies and overrides, and the access history. access:write to change them. It needs access:read too.
An admin creates the key in Settings → Integrations → API keys. See Authentication.

What a user is

A user is a person with a sign-in account and a role in your group. Their personType is their most senior role: roles lists every role they hold, most senior first. status is active, suspended, or invited while an invitation waits for them to accept. Until they accept, you see only the address you invited, not their name. A parent is listed as a parent and nothing more. To read their children, use GET /members with members:read.

Read the team

Pass personType=leader to read only leaders. There is no updatedSince: read the whole list to compare it with yours. The webhooks below tell you about most changes between reads.

Invite someone

  • The person gets the normal Scoutworks invitation email. Send "sendInvitation": false to add them now and send the invitation later from Scoutworks.
  • personType is leader, young_leader or trustee. A Young Leader also needs memberId: their own member record from GET /members, which needs members:read too.
  • GET /sections lists the section ids.
  • Someone who already uses Scoutworks in another group is added as an invitation. They accept it when they next sign in, and the answer has "status": "invited".
  • A person who is suspended in your group answers 409 source_locked. An admin reinstates them in Scoutworks.
  • Send an Idempotency-Key. If the request times out and you send it again, Scoutworks answers with the first invitation and sends no second email. See Writing data.

Change someone’s sections or person type

Send only what changes: personType, sectionIds, or alsoTrustee to make a leader a trustee as well. sectionIds replaces their sections. Nobody is emailed. A suspended person, an invitation not yet accepted and a parent answer 409 source_locked.

Suspend or remove someone

  • POST /users/{userId}/suspend takes away their access at once and keeps their record. It suspends every role they hold in your group except a parent role, which stays so they still see their own children. All of the roles change together, or none does. Nobody is told. You may send a reason: formal_suspension, on_leave or other. To give them their access back, send POST /users/{userId}/reinstate, or an admin reinstates them in Scoutworks. Either restores the same roles.
  • DELETE /users/{userId} ends every leader, Young Leader, Network and trustee role they hold in your group, and withdraws an invitation still waiting for them. A person whose only role is an invitation not yet accepted answers 409 source_locked: withdraw it in Scoutworks. Their account and history stay. A role as a parent stays too.

Manage access

An access policy is a named set of what people can do: one row per area, each with a level and a scope. Scoutworks has locked built-in policies (Volunteer, Treasurer, Quartermaster and others) and your group can make its own. A person holds one or more policies. An override adds or takes away one area for one person, with a reason. A policy’s id is a built-in’s key, such as role.leader or addon.treasurer, or your own policy’s UUID. GET /access-policies lists them all.

Make a policy and give it to someone

  • PUT /users/{userId}/policies replaces every policy the person holds. Read them first with GET /users/{userId}/policies, and send the ETag as If-Match.
  • PATCH /access-policies/{policyId} changes one of your own policies. Everyone who holds it has the new access on their next request. A built-in is locked: copy it first with POST /access-policies/{policyId}/copy.
  • POST /access-policies/{policyId}/archive archives one of your own policies. While anyone holds it, send replacementPolicyId: every holder gets that policy in the same change.

Add or remove an override

Send "level": "none" (with no scope) to take an area away. DELETE /users/{userId}/overrides/{overrideId} removes one. Send the ETag the add answered as If-Match: if the override changed since, the request answers 412 and removes nothing. The rules are the ones Scoutworks applies on the Edit access sheet. A Young Leader never gets money access, care and medical records stay with a member’s own sections, and a change that breaks a rule answers 400 with the reason. A suspended person, an invitation not yet accepted, a parent and a Network member answer 409 source_locked.

The access history

GET /access-history lists every change to who can do what, newest first. A change made through the API carries the key’s apiKeyId, and Scoutworks shows it as “via API key” and the key’s name.

What a key can never do

A key never adds, promotes to, changes or removes a group admin, and never changes an admin’s access: not their policies, not their overrides, and not a policy an admin holds. A key also never gives access to manage people or settings: no policy or override it makes or gives may hold settings at any level, or team at manage. So a key cannot copy the Admin policy. Each of these answers 403 with the code admin_protected. An admin makes the change in Scoutworks. This stops a key that leaks from taking over your group. The other rules are the ones Scoutworks applies everywhere. For example, a group always keeps one admin, and one person cannot be a leader and a Young Leader in the same group.

Limits

Each invitation emails a person, so invitations have two limits of their own: 20 an hour for each key, and 50 a day for all of your group’s keys. Every attempt counts, except a retry with the Idempotency-Key of an invitation already made. See Rate limits.

Hear about changes

Subscribe a webhook endpoint to user.invited, user.updated and user.removed. They are sent for changes on the Users screen, suspensions and reinstatements, invitations that are accepted, declined or withdrawn, and changes through the API. Each carries the user’s id: read the rest with GET /users/{userId}. Two changes send no user webhook yet: promoting a young person to a leader, and a parent linked through a member record. So read the whole list from time to time as well. Subscribe to user.access-changed (it needs access:read) to hear when a person’s access is saved on the Edit access sheet, by a bulk policy change on the Users list, or through the access endpoints. A change through PATCH /users/{userId} sends user.updated instead. A change to a policy itself, or an archive that moves its holders, sends none yet: read GET /access-history for those.

Who made the change

Each change is recorded as made by the admin who created the key, and the record names the key.

District keys

A district or area key has no user or access endpoints yet.