Rename Identities? #2714
-
We are currently mapping our user email addresses to our identities. We are doing this as we are wanting to easily distinguish users which users are which in the Flagsmith portal. On our platform, we currently allow users to change their email address, however, this means any traits the user had or any features explicitly set for them will be lost. Is there a way to rename an Identity via the API to avoid this issue? If not, is there way to fetch a list traits belonging to the Identity via the API? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You can't rename identities currently. You can just grab the flags for an identity which will also return all their traits. |
Beta Was this translation helpful? Give feedback.
-
When performing the following request:
I am receiving a the flags for the user, but the list of traits is empty, even though I have traits assigned to the user on the Flagsmith Portal. If I update the body to include a new trait, e.g.
The new trait is present in the API response, however it is not visible in the Flagsmith Portal. When querying the API again, the new trait is present. It seems that the Flagsmith Portal and the API have different data stores for a given environment - is that correct? |
Beta Was this translation helpful? Give feedback.
-
Is your project running against our Edge API? Can you amend the URL to https://edge.api.flagsmith.com/api/v1/identities/ ? |
Beta Was this translation helpful? Give feedback.
You can't rename identities currently.
You can just grab the flags for an identity which will also return all their traits.