Creating a profile before syncing / Profile Type behavior

Created on 16 July 2025, 18 days ago

Problem/Motivation

When a user doesn't have a profile yet, the fields will not be synced as no profiles can be found.

Steps to reproduce

1. Create a user without a profile
2. Setup profile mapping
3. Login
4. Profile fields are not synced

Proposed resolution

Either:

a) Provide a hook before synchronization to allow the developer to create a profile
b) Add configuration and configuration form for users to:
- Wether to create a profile
- Select the profile type that will be used

The profile type could also be used to filter the available profile fields.
Currently the module by design maps fields across different profile types if the field name exists.
Filtering that before would probably be a breaking change.
Due to the impact and this being probably better suited for another discussion I opted for solution a) for this patch.

Remaining tasks

User interface changes

When solution b) is preferred.
Alter the form or create a new tab that provides a config form.

API changes

When solution b) is preferred.
Profile mappings wouldn't be able to be synced across multiple profile types.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany n1k

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024