<@U03RQ1GR32R> hello. Just to clarify, you are loo...
# talk-kratos
s
@chilly-sandwich-92462 hello. Just to clarify, you are looking at initializing an identity with either .default_schema_id1 id2 id3?
c
@swift-chef-97535 I have a Kratos configuration as follows:
Copy code
identity:
  default_schema_id: cat
  schemas:
    - id: cat
      url: file:///etc/config/kratos/common/identity.cat.schema.json
    - id: dog
      url: file:///etc/config/kratos/common/identity.dog.schema.json
    - id: person
      url: file:///etc/config/kratos/common/identity.person.schema.json
With that config, when user starts a self-service registration flow, Kratos always uses
cat
schema, because it is defined in config:
default_schema_id: cat
. If user successfully registers, an identity with
schema_id: "cat"
is created. What I need, is to be able to choose which schema to use when starting a self-service flow, so the user could register as cat, dog or a person, each possibly having a different set of fields to fill during the registration.
b
Hi, unfortunately kratos doesn’t currently support setting the schema during registration. That is an admin-only functionality. You can read more about that here: https://github.com/ory/kratos/issues/765 That is on our roadmap and should be implemented at some point. Contributions are welcome. :)
c
Thank you for the response, I will watch the issue you mentioned