<@U04UQ68083H> is it possible to disable the possi...
# ory-copilot
f
@chilly-king-10285 is it possible to disable the possibility to change the email address in the profile flow?
c
A message from kapa.ai
The Ory Kratos documentation does not provide explicit information on disabling the ability to change the email address in the profile flow. However, the profile flow allows updating protected fields such as the username or email address used to sign in, and the recovery email address. If you want to restrict this, you might need to customize the flow or the Identity Schema. It's recommended to check the [Ory Kratos documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-settings#update-profile) or reach out to the Ory community for more specific guidance.
f
@chilly-king-10285 how to disable changing the kratos identifier field?
c
A message from kapa.ai
The Ory Kratos documentation does not provide explicit information on disabling the ability to change the identifier field. The identifier field is typically used for login purposes and can be set to various fields such as
password
,
code
for one-time password login, or
webauthn
for WebAuthn login. Here are examples of setting the identifier field: For password login:
Copy code
json {    "<http://ory.sh/kratos|ory.sh/kratos>": {    "credentials": {    "password": {    "identifier": true    }    }    }   }
For one-time code login:
Copy code
json {    "<http://ory.sh/kratos|ory.sh/kratos>": {    credentials: {    code: {    identifier: true,    via: "email",    },    },    },   }
For WebAuthn login:
Copy code
json {     "<http://ory.sh/kratos|ory.sh/kratos>": {       "credentials": {         "webauthn": {           "identifier": true         }       }     }   }
If you want to restrict changes to these fields, you might need to customize the flow or the Identity Schema. It's recommended to check the [Ory Kratos documentation](https://www.ory.sh/docs/kratos/) or reach out to the Ory community for more specific guidance.