Skip to content

Account Management and Authorization

Job van Koeveringe edited this page Nov 18, 2026 · 4 revisions

Account Management and Authorization

Scouts Online authenticates the person. WordPress decides what that person may do after login through its local roles and capabilities. Keep those two concerns separate when designing access policy.

Authentication versus authorization

Concern Controlled by
Who can start and complete a Scouting login The managed website connection, allowed organizations, provider identity, and OIDC validation.
Whether a verified Scouting login is allowed locally All matching SOL role-mapping rules; any matching deny blocks login.
Which local account receives the login SOL member ID and OIDC subject binding.
What the user can do after login The local WordPress role and capabilities, plus any site-specific plugins.

Since 2.7.0, the plugin can assign multiple managed WordPress roles from synchronized SOL assignments. New unmatched users receive the site's WordPress default role; plugin Settings can optionally add it alongside mapped roles. Review that default and the mapping policy before enabling Allow new user accounts.

Provisioning modes

Automatic account creation

With Allow new user accounts enabled, the plugin creates a WordPress user when a successfully authenticated SOL member has no local account with the same member ID. The user receives a generated password; normal sign-in is expected to continue through Scouts Online.

Use this mode when members allowed by the managed website connection may obtain a local account. SOL role mapping is evaluated after account creation, so a denied login can still leave a local account behind.

Pre-provisioned accounts

With automatic creation disabled, a successful provider login can continue only when an appropriately bound local account already exists. Use this mode when an administrator must approve, prepare, or role-assign every account before access.

Do not create a local account by reusing another member's SOL member ID. The plugin rejects accounts whose stored OIDC subject does not match the authenticated subject.

Account binding

The first successful OIDC login binds a local OIDC account to the provider's sub value. Existing plugin accounts created before subject binding was added are bound during their next successful login if they are already marked as OIDC accounts.

When a member ID exists locally but belongs to a different subject, login stops with an account-binding error. Treat this as an identity or data-reconciliation event, not a reason to bypass the check.

Duplicate email policy

WordPress requires unique account email addresses. If the provider email already belongs to a different local account, choose one of these policies in Scouting OIDC > Settings:

Policy Behavior
Add plus addressing Creates or updates the OIDC user's local email as local-part+SOL_ID@example.org. Outgoing mail is normalized to the base email for known OIDC aliases.
Stop with an error Leaves the conflict unresolved and prevents account creation or update.

Resolve identity ownership deliberately before changing the policy or editing an existing account. Do not use email matching alone as proof that two accounts belong to the same person.

Roles and capabilities

Use Scouting OIDC > SOL Role Mapping to configure allow/deny rules and a WordPress role for allowed OIDC logins. The optional roles scope must be enabled in both Scouts Online and WordPress to receive role data.

Every matching allow rule contributes a WordPress role; any matching deny blocks login. All conditions in each rule must match the same active SOL assignment. At each successful OIDC login, obsolete plugin-granted roles are removed and independently assigned roles are preserved. New unmatched users receive the WordPress default role; adding it alongside mapped roles is an opt-in plugin Settings option for new and existing users. Existing unmatched users receive no replacement role. Read SOL Roles and Mapping for setup, rule management, hierarchy matching, and the read-only user tester.

WordPress capabilities remain local. Apply least privilege and avoid mapping to administrative roles without a reviewed policy. Custom integrations can use the documented actions in Developer Integration, but must not assume ownership of the same role as the plugin.

WooCommerce ordering restrictions are configured separately in WooCommerce SOL Access.

Offboarding and access removal

The managed website connection controls which organizations may authenticate. The plugin refreshes SOL assignments and applies role mapping at OIDC login; it does not continuously reconcile accounts or restrict ordinary WordPress password logins. Missing role claims retain stored assignments for inspection but make them unavailable for authorization. Do not rely on provider changes alone for immediate offboarding.

Since 2.7.1: when a completed SOL authentication flow is denied by the local role policy, the plugin invalidates that user's existing WordPress sessions and removes plugin-managed WordPress roles. Manual roles, the account, and its stored data remain. Cleanup failures are logged. This does not disable future password login or automatically delete the account.

This is not SOL revocation monitoring. If SOL refuses authentication before returning a usable authorization code and UserInfo, the plugin cannot identify and clean up the account through this flow. A returning visitor with a valid WordPress cookie is not automatically sent through SOL again. Changes to mapping rules alone also do not immediately terminate existing sessions. See Login duration and returning visitors.

Establish an offboarding process that covers:

  1. Removing or downgrading the local WordPress role.
  2. Invalidating existing WordPress sessions and reviewing content ownership and commerce records.
  3. Deciding whether to retain or delete the account according to the site's retention policy.
  4. Reviewing optional profile data, WooCommerce data, and logs.
  5. Removing access at the provider connection level when the change applies to an organization or connection.

See Users, Privacy and Data Lifecycle for stored data and uninstall behavior.

Clone this wiki locally