Repository navigation
Users and Data Lifecycle
This page describes how Scouting OpenID Connect creates local WordPress users, which data it stores, and what administrators should consider for privacy, retention, and removal.
It is technical documentation, not legal advice. The site owner remains responsible for determining the lawful basis, privacy notice, retention policy, access controls, and processor arrangements that apply to the site.
For an account created through Scouting OpenID Connect, the plugin uses:
| Local value | Source | Purpose |
|---|---|---|
| WordPress username | SOL member_id
|
Stable local login identifier. |
| WordPress email address | UserInfo email
|
Standard WordPress account email. |
scouting_oidc_subject user metadata |
OIDC sub
|
Binds the local account to the provider identity. |
scouting_oidc_user user metadata |
Plugin value | Marks an account as an OIDC-created account. |
scouting_oidc_sol_url user metadata |
UserInfo profile URL | Enables the View in SOL action in the WordPress Users list. |
scouting_oidc_owned_wordpress_role user metadata |
Roles actually added by the plugin | Tracks the list of plugin-owned WordPress roles for reconciliation and uninstall. |
The subject binding prevents a different provider identity from taking over a
local account with the same member ID. Do not change scouting_oidc_subject
directly in the database or user metadata editor; investigate the account
binding before correcting an access problem.
The plugin updates normal WordPress profile fields on successful OIDC login:
first_namelast_namenicknamedisplay_namelocaleshow_admin_bar_front
The display-name setting determines whether the full name, first name, or last
name is used. The plugin retrieves claims from the provider UserInfo endpoint
after validating the ID token and matching both sub values.
The following data is stored only when its matching general setting is enabled. The relevant provider scope must also be configured.
| Feature | Required scope | Stored metadata |
|---|---|---|
| Birthdate | profile |
scouting_oidc_birthdate |
| Gender | profile |
scouting_oidc_gender |
| Phone number | phone |
scouting_oidc_phone_number, scouting_oidc_phone_number_verified
|
| Address | address |
scouting_oidc_street, scouting_oidc_house_number, scouting_oidc_postal_code, scouting_oidc_locality, scouting_oidc_country_code
|
Review these options regularly and enable only claims that the site genuinely needs. Profile fields displayed by the plugin are read-only because the provider is the source of those values.
Users should update their information in SOL 3 (mijn.scouting.nl). Values are refreshed during OIDC sign-in, not continuously. Disabling an optional field stops refreshing its SOL metadata but does not erase previously stored values. For an enabled field, a blank SOL value clears the corresponding stored value at the next sign-in.
When WooCommerce is installed and Use WooCommerce phone number and address fields is enabled, the plugin copies stored profile data into WooCommerce customer metadata:
- First and last name: billing and shipping names.
- Phone number: billing and shipping phone fields.
- Address: billing and shipping address, postcode, city, and country fields.
Stored phone and address values can still be copied even after their optional SOL storage settings are disabled. Those settings stop refreshing the SOL metadata; they do not erase it or independently disable WooCommerce copying.
Blank names and phone numbers are skipped. An entirely blank address is also skipped, leaving existing WooCommerce address values unchanged. If any address component remains populated, all mapped billing and shipping address fields are updated, including blank components. For example, a blank SOL postcode clears an existing WooCommerce postcode when the street or another address component is still populated.
This duplicates personal data outside the plugin-specific metadata. Disabling the setting stops future synchronization; it does not remove values already written to WooCommerce fields. Include those fields in the site's retention and erasure process.
With the optional roles scope, the plugin stores synchronized organizations,
parent relationships, organization units, role definitions, and user assignment
start/end dates in five dedicated tables. Assignments link to WordPress user
IDs. They are refreshed at OIDC login; a missing role graph retains existing
data for inspection but marks it unavailable for authorization. A per-user
scouting_oidc_roles_available metadata flag records synchronization availability.
A valid explicitly empty assignment list removes that user's previous
assignments. Removing the optional roles scope disables authorization against
stored assignments without deleting them.
The table columns, logical relationships, and other WordPress storage locations are documented in Architecture.
Date-only assignment boundaries use Europe/Amsterdam and are converted to UTC for storage and authorization. End dates are inclusive. The Explorer shows the stored UTC timestamps; see Assignment dates and timezone.
The SOL Role Explorer exposes this stored data only to administrators with
manage_options. It includes linked user names and assignment dates, but no
email column. Role-mapping rules are stored in a plugin option; WooCommerce
allow/deny selections and matching switches are stored as product metadata.
Neither constitutes a copy of the user's access token.
Deleting a WordPress user removes their synchronized assignments. Shared organization, unit, hierarchy, and role definitions are not a per-user history and may remain. Daily log cleanup does not expire these tables. Include role assignments and product access configuration in backup and retention policies.
See SOL Roles and Mapping and WooCommerce SOL Access for their authorization effects.
If automatic account creation finds an existing WordPress email address, the
configured duplicate-email policy either stops creation or creates a local
plus-addressed email such as name+SOL_ID@example.org. The plugin normalizes
outgoing WordPress mail addressed to a known SOL plus alias so it reaches the
base email address.
This is an account-conflict mechanism, not a replacement for an account ownership policy. Review the existing account and its identity binding before manually merging or deleting accounts.
Plugin logs are kept in a database table and may include user IDs, SOL member
IDs, timestamps, component names, severity, and operational messages. Debug
entries are stored only when debug logging is enabled. When WP_DEBUG is
enabled, plugin logs may also be mirrored to the WordPress or PHP error log.
The default log retention period is 30 days. Administrators can set it between 1 and 3650 days in Scouting OIDC > Settings. Daily WordPress cron cleanup removes expired log entries. See Operations and Troubleshooting for monitoring and recovery of the cleanup schedule.
Deactivating the plugin clears its scheduled daily log-cleanup event. It does not remove the plugin's settings, log or role tables, OIDC user metadata, WooCommerce metadata, or WordPress users. It also stops enforcement of the plugin's login mapping and product restrictions; it does not revoke existing WordPress roles.
Uninstalling the plugin removes:
- Plugin options, including OIDC credentials, logging settings, and role-mapping rules.
- Plugin discovery, JWKS, and session transients.
- Plugin-specific OIDC user metadata, including the managed-role tracking key.
- The plugin log table and five SOL role-data tables.
- WooCommerce product allowed and denied organization/role ID lists, their descendant-matching and require-both settings, and product/global SOL sign-in requirements.
Uninstalling revokes WordPress roles positively tracked as added by the plugin
before deleting its ownership metadata. Pre-existing or independently assigned
roles are preserved. Assignments use scouting_oidc_owned_wordpress_role to
store the list of roles actually added by the plugin.
If a tracked role cannot be revoked, uninstall stops before removing its marker.
Uninstalling does not remove the underlying WordPress user accounts, their independently assigned WordPress roles, core WordPress profile fields, or values previously copied to WooCommerce billing and shipping fields. Back up the database first and include these remaining records in any required manual erasure process.
Use the site's established WordPress privacy and account-management procedures. Before deleting a user, identify related commerce records, editorial ownership, and audit obligations. Historical plugin logs are retained when a WordPress user is deleted; the plugin records the deletion and only links user IDs while the account still exists. Retained logs remain subject to the configured cleanup period and any separate erasure obligations.
For access issues, do not solve a subject-binding mismatch by modifying metadata blindly. Follow Account Management and Authorization to preserve the identity boundary.
- Home
- Introduction
- Installation
- Configuration
- Shortcodes
- OpenID Connect
- Operations and Troubleshooting
- Users, Privacy and Data Lifecycle
- Account Management and Authorization
- SOL Roles and Mapping
- WooCommerce SOL Access
- Migration, Backup and Recovery
- Developer Integration
- FAQ and Known Limitations
- Architecture