<@U04UQ68083H> I would like to attach a trait to u...
# ory-copilot
w
@chilly-king-10285 I would like to attach a trait to users that is not directly editable by them and has to be verified server-side first (think a membership code that they can enter, and we verify their ownership before allowing it to be added). How should we approach this?
c
A message from kapa.ai
Hmm, I don't know enough to give you a confident answer yet. However, Ory Kratos does support the concept of traits, which represent an identity's attributes. Normally, an identity can create, modify, and delete traits in a self-service manner, and the input is always validated against a defined JSON Schema. In your case, you want to add a trait that is not directly editable by the user and needs to be verified server-side first. This might require a custom implementation on your part, where you handle the verification process server-side before updating the user's traits in Ory Kratos. I recommend checking out the [Ory Kratos API Reference](https://www.ory.sh/docs/kratos/reference/api) and the [Ory Kratos Documentation](https://www.ory.sh/docs/kratos/) for more information on how to work with traits and identities.