Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

christaiwo's avatar

christaiwo started a new conversation+100 XP

5mos ago

I want to disable automatic user creation triggered by WorkOS in a Laravel 12 app.

I already disabled self-registration in the WorkOS dashboard, so users no longer see the registration page. The issue is that when a user clicks the login button, if the account exists in WorkOS, the callback flow still creates a new user record in my Laravel app.

In my setup, only an admin should create users. We use one WorkOS directory for multiple applications, so a user might authenticate globally, but access to each platform must be controlled from our admin panel. Because of this, I need WorkOS to authenticate users without automatically creating them in Laravel.

I want to know how to stop the WorkOS callback from creating users and instead allow login only for users already created by the admin.