glamorous-crayon-34702
09/22/2025, 1:43 PMchilly-king-10285
09/22/2025, 1:43 PMchilly-king-10285
09/22/2025, 1:43 PMbash curl --request POST \ --header "Authorization: Bearer <ory_personal_access_token>" \ --header "Content-Type: application/json" \ --data '{ "schema_id": "<preset://email>", "traits": { "email": "<mailto:user@example.org|user@example.org>" } }' https://<your-project-host>/admin/identities
This creates the user account without a password. They can then set their password later using Ory’s self-service flows (e.g., by directing them to your login/registration UI, or initiating a recovery or settings flow depending on your UX). [[Create identities](https://www.ory.sh/docs/kratos/manage-identities/create-users-identities)] If you are migrating users and need them to set a new password on first login (without knowing the old hash), you can alternatively import the identity with an empty password hash and enable the password migration hook, which validates the first login and stores the new hash automatically. [[Password migration hook](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#password-migration-using-a-web-hook)]glamorous-crayon-34702
09/22/2025, 1:44 PMglamorous-crayon-34702
09/22/2025, 1:45 PMchilly-king-10285
09/22/2025, 1:45 PMchilly-king-10285
09/22/2025, 1:45 PM