> ## Documentation Index
> Fetch the complete documentation index at: https://docs.turnkey.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a user with email only

> This example demonstrates how to create a sub organization using just an end-user's email: passkeys not required! Note that this flow does not require emails to be verified.

> ⚠️ **This example is outdated !**<br />
> Head over to [SDK Reference](https://docs.turnkey.com/sdks/react/sub-organization-customization) for the updated packages.

<Steps>
  <Step title="Initialize Turnkey">
    ```JavaScript theme={"system"}
    import { Turnkey } from "@turnkey/sdk-browser";

    const turnkey = new Turnkey({
      apiBaseUrl: "https://api.turnkey.com",
      defaultOrganizationId: process.env.TURNKEY_ORGANIZATION_ID,
    });
    ```
  </Step>

  <Step title="Configure the Sub Organization for the User">
    ```JavaScript theme={"system"}
    import { DEFAULT_ETHEREUM_ACCOUNTS } from "@turnkey/sdk-browser;"

    const subOrganizationConfig = {
      subOrganizationName: <subOrganizationName>,
      rootUsers: [{
        userName: <userEmail>,
        userEmail: <userEmail>,
        apiKeys: [],
        authenticators: [],
        oauthProviders: []
      }],
      rootQuorumThreshold: 1,
      wallet: {
        walletName: <walletName>,
        accounts: DEFAULT_ETHEREUM_ACCOUNTS
      }
    };
    ```
  </Step>

  <Step title="Call createSubOrganization from your backend">
    ```JavaScript theme={"system"}
    await turnkey.serverSign("createSubOrganization", [subOrganizationConfig]);
    ```

    This is all that is needed to create a user without any authentication credential other than their email address, in the [login](/embedded-wallets/code-examples/authenticate-user-email) flow you can see how to then authenticate the user after their `subOrganization` is created.
  </Step>
</Steps>
