> ## Documentation Index
> Fetch the complete documentation index at: https://developers.scoutworks.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Limits and reference values

> Every number the SCIM server and work-account sign-in enforce: rate limits, the circuit breaker, paging, token rotation, retention and the SAML defaults.

These values come from the same code the server runs, so they are always the ones in force.

## Rate limits

| Limit | Value |
| - | - |
| SCIM requests from one IP address to one connection | 1,200 a minute |
| SCIM requests from one IP address, all connections | 6,000 a minute |
| SCIM requests for one connection | 600 a minute, with bursts of up to 100 more |
| Users and groups created by a group’s connection | 2,000 a day |
| Users and groups created by a district’s (or higher) connection | 20,000 a day |
| Work-account email look-ups from one IP address | 20 a minute |
| "Check now" on a domain, for one organisation | 30 a minute |

A SCIM request over a limit gets `429` with a `Retry-After` header: the seconds until the limit resets. Entra and Google both wait and retry.

## Circuit breaker

| Rule | Value |
| - | - |
| Window | 10 minutes of SCIM traffic, or one Google sync run |
| Share of the people a connection manages | more than 20%, once at least 5 people are involved |
| People, for a group’s connection | more than 25 |
| People, for a district’s (or higher) connection | more than 250 |
| `Retry-After` while a connection is paused | 300 seconds |

Either rule trips the breaker when the people suspended or removed in the window would pass it. See [Safety and control](https://developers.scoutworks.app/scim-sso/safety.md).

## SCIM

| Value | Setting |
| - | - |
| Page size (`count`) | 100 by default, 200 at most |
| Token prefix | `swscim_` |
| Largest request body | 1 MB |
| Longest `filter` | 2,048 characters |
| A replaced token keeps working for | 7 days |
| A deleted user is kept, so a re-create restores them, for | 30 days |
| The provisioning log is kept for | 12 months |
| `scimType` values in errors | `uniqueness`, `invalidFilter`, `invalidValue`, `invalidSyntax`, `invalidPath`, `mutability`, `noTarget`, `tooMany` |

## Google Workspace directory sync

| Value | Setting |
| - | - |
| The sync reads the chosen scope every | 15 minutes |
| Nested groups read below a chosen group | up to 5 levels |
| Someone out of scope is suspended at once, and removed after | 7 days |

## Requiring work-account sign-in

| Value | Setting |
| - | - |
| Break-glass admins | 1 to 3 |

## Roles a directory can grant

| Where | Roles |
| - | - |
| A group | `leader`, `young_leader`, `trustee`, `network` |
| A district or higher | `leader`, `trustee`, `viewer` |

A directory never grants `group_admin`, `parent` or `youth`.

## Domain verification

| Value | Setting |
| - | - |
| TXT record | `scoutworks-verification=<token>` |
| Where the record may sit | the domain itself, or `_scoutworks.<domain>` |
| A new domain is checked | every 10 minutes for 72 hours |
| A verified domain is checked again | every 24 hours |
| It lapses after | 7 failed checks in a row |

These public mail domains can never be verified: `aol.com`, `aol.co.uk`, `btinternet.com`, `btopenworld.com`, `gmail.com`, `googlemail.com`, `hotmail.com`, `hotmail.co.uk`, `icloud.com`, `live.com`, `live.co.uk`, `mac.com`, `me.com`, `msn.com`, `ntlworld.com`, `outlook.com`, `outlook.co.uk`, `protonmail.com`, `proton.me`, `sky.com`, `talktalk.net`, `tiscali.co.uk`, `virginmedia.com`, `yahoo.com`, `yahoo.co.uk`, `ymail.com`.

## Google Workspace scopes

Directory sync asks for these read-only scopes, and nothing more:

* `https://www.googleapis.com/auth/admin.directory.user.readonly`
* `https://www.googleapis.com/auth/admin.directory.group.readonly`
* `https://www.googleapis.com/auth/admin.directory.group.member.readonly`
* `https://www.googleapis.com/auth/admin.directory.customer.readonly`

## SAML defaults

The attribute each value is read from, unless you change it on the connection. With no `subject`, the NameID is used.

| Value | `entra` | `google` | `saml_generic` |
| - | - | - | - |
| `email` | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress` | `email` | `email` |
| `firstName` | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname` | `firstName` | `firstName` |
| `lastName` | `http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname` | `lastName` | `lastName` |
| `groups` | `http://schemas.microsoft.com/ws/2008/06/identity/claims/groups` | `groups` | `groups` |
| `subject` | `http://schemas.microsoft.com/identity/claims/objectidentifier` | NameID | NameID |

An assertion is accepted for 5 minutes from its `IssueInstant`. A SAML sign-in counts as multi-factor when its `AuthnContextClassRef` is one of:

* `http://schemas.microsoft.com/claims/multipleauthn`
* `urn:oasis:names:tc:SAML:2.0:ac:classes:MobileTwoFactorContract`
* `urn:oasis:names:tc:SAML:2.0:ac:classes:MobileTwoFactorUnregistered`
* `urn:oasis:names:tc:SAML:2.0:ac:classes:TimeSyncToken`
* `https://refeds.org/profile/mfa`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.