Thank you for providing additional context about this query.
Since you prefer to have a user-editable attribute, I suggest you create an attribute (let’s say username) under the app_metadata attribute and use app_metadata.username as the unique identifier.
Here are a few FAQs that explain the app_metadata attributes.
Please let me know if any further queries about this topic. Thanks!