plain-lunch-50969
05/30/2025, 2:34 PMbrief-egg-61061
05/30/2025, 2:34 PMbrief-egg-61061
05/30/2025, 2:35 PMdisabled
, which can be set to true
to make an input field non-editable. The API response for settings/profile nodes includes this property, but the knowledge sources do not specify a configuration option in the identity schema or Ory Console to set this for specific fields like the username. The default behavior is that the fields presented in the settings flow are determined by your identity schema, and all are editable unless you implement custom logic in your UI to render certain fields as read-only based on your requirements. If you want to prevent users from changing their username, you would typically need to: - Exclude the username field from the editable fields in your custom UI, or - Render the username field as disabled/read-only in your UI by checking the field name and setting the disabled
attribute accordingly. There is no mention of a built-in Ory Elements or Ory Console setting to make a specific trait non-editable out of the box. You may need to handle this in your UI layer or with custom hooks/actions if you want to enforce this at the API level as well [Settings and profile updates](https://www.ory.sh/docs/kratos/self-service/flows/user-settings) [Identity schema](https://www.ory.sh/docs/kratos/manage-identities/identity-schema). If you need to enforce this restriction strictly, consider implementing a pre-update hook that rejects changes to the username trait [Hooks](https://www.ory.sh/docs/kratos/self-service/flows/user-settings#hooks). Summary: There is no direct configuration in Ory Elements or Ory Console to mark a profile element as not-changeable; you must handle this in your UI or with custom hooks.plain-lunch-50969
05/30/2025, 3:17 PMbrief-egg-61061
05/30/2025, 3:17 PMbrief-egg-61061
05/30/2025, 3:17 PM