incalculable-parrot-80687
09/26/2022, 12:45 PMbland-eye-99092
09/26/2022, 12:48 PMincalculable-parrot-80687
09/26/2022, 12:49 PMincalculable-parrot-80687
09/26/2022, 12:50 PM{
"$id": "<https://schemas.ory.sh/presets/kratos/identity.email.schema.json>",
"title": "Person",
"type": "object",
"properties": {
"traits": {
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"title": "E-Mail",
"<http://ory.sh/kratos|ory.sh/kratos>": {
"credentials": {
"password": {
"identifier": true
},
"webauthn": {
"identifier": true
},
"totp": {
"account_name": true
}
},
"recovery": {
"via": "email"
},
"verification": {
"via": "email"
}
},
"maxLength": 320
},
"tenants": {
"type": "array",
"title": "Tenant IDs",
"items": {
"type": "string"
}
}
},
"required": [
"email"
],
"additionalProperties": false
}
}
}
bland-eye-99092
09/26/2022, 12:53 PMincalculable-parrot-80687
09/26/2022, 12:53 PMincalculable-parrot-80687
09/26/2022, 12:54 PMcurl --request POST -sL \
--header "Authorization: Bearer ory_pat_SCredacted" \
--data '{
"schema_id": "<preset://email>",
"traits": {
"email": "<mailto:docs@example.org|docs@example.org>", "tenants": ["bob"]
}
}' <https://boring-raman-1u4afyrrtk.projects.oryapis.com/admin/identities>
bland-eye-99092
09/26/2022, 12:58 PMschema_id
parameter.
If you leave it out and set your schema to be the default, it works.incalculable-parrot-80687
09/26/2022, 1:01 PMincalculable-parrot-80687
09/26/2022, 1:01 PMbland-eye-99092
09/26/2022, 1:07 PMmetadata_admin
works for you here.
We do not support multi tenancy in this way though. One way how it works is by using multiple Ory Cloud projects.incalculable-parrot-80687
09/26/2022, 1:22 PMincalculable-parrot-80687
09/26/2022, 1:23 PMbland-eye-99092
09/26/2022, 1:24 PMincalculable-parrot-80687
09/26/2022, 1:24 PMincalculable-parrot-80687
09/26/2022, 1:25 PMincalculable-parrot-80687
09/26/2022, 1:25 PMbland-eye-99092
09/26/2022, 1:28 PMincalculable-parrot-80687
09/26/2022, 1:29 PMincalculable-parrot-80687
09/26/2022, 1:29 PMbland-eye-99092
09/26/2022, 1:30 PM