Does OAuth2/Google login support automatic user creation for new users?

Hello,

I'm using PHPMaker 2026 (Trial license) for a government registry application

(Symfony-based generated app), and I've successfully set up Google OAuth2 login

following the standard configuration (Advanced Settings > Use OAuth2, Google client

id/secret, OAuth Client created in Google Cloud Console with the correct redirect URI).

CURRENT BEHAVIOR

- Logging in with a Google account whose email already matches an existing row in my

"Utilisateurs" table works correctly.

- Logging in with a Google account that has NO matching row in the Utilisateurs table

results in an HTTP 401 "Vous n'avez pas la permission d'accéder" error.

QUESTION

Is it possible to configure PHPMaker so that a NEW user row is automatically created

in the Utilisateurs table the first time someone authenticates successfully via

Google OAuth (similar to "Just-In-Time" / auto-provisioning patterns), instead of

requiring an administrator to manually pre-create every account?

If this is supported out of the box, which setting/option did I miss?

If it is NOT supported natively, is there a recommended way to implement this using

Server Events (e.g. is there a specific event fired after a successful OAuth

authentication, before the 401/permission check, where I could insert a new user

record programmatically if one doesn't already exist)?

My use case: the public-facing part of the application should allow any external

person with a Google account to register/login automatically with a default

("read-only" / minimal) user level, without an administrator having to create their

account beforehand.

Thank you for your help.

Best regards,

[Steph ]

You may use the User_CustomValidate server event to insert new user to the users table if you really want to "authenticate" your users that way.