```hello ory guys i need a help, func CreateUserIn...
# ory-network
m
Copy code
hello ory guys i need a help, func CreateUserInOry(email string, firstName string, lastName string) (string, error) {
    createIdentityBody := *ory.NewCreateIdentityBody(
        "what schema id i should use here",
        map[string]interface{}{
            "traits": map[string]interface{}{
                "email": email,
                "name": map[string]string{
                    "first": firstName,
                    "last":  lastName,
                },
            },
        },
    )
    createdIdentity, _, err := client.IdentityApi.CreateIdentity(oryAuthedContext).
        CreateIdentityBody(createIdentityBody).Execute()
    if err != nil {
        if err.Error() == "409 Conflict" {
            fmt.Printf("Identity already exists %v ", err)
            return "", err
        }
        fmt.Printf("Identity creation in ory failed %v ", err)
        return "", err
    }
    return createdIdentity.Id, nil
}
how to get schema id
never mind fixed it