Hello everyone,
On our Open edX platform, we use Microsoft as the identity provider (IdP) for SSO.
Currently, we do not skip the registration form during SSO login. This decision was made because we noticed that public usernames were automatically generated based on the user’s full name.
However, this process introduces issues: spaces are replaced with underscores, and accented characters (common in Spanish names) are removed.
Full name
Laura Sofía Firstname LastnamePrefilled public username
Laura_Sof_a_Firstname_Lastname
We’re wondering if there’s a way to prefill the public username field using other data provided by the IdP. For example, could it be based on the email address with @ replaced with _ or just the user’s last name?
This change could significantly streamline the registration process, especially since the public username is prominently displayed in the top-right corner of the course interface, and originally we wanted to skip the registration form when using a trusted OAuth provider.
Any advice or insights would be greatly appreciated!
Thanks.