How to Delete User Profile Attributes

Problem Statement

How to delete user profile attributes

Solution

Setting an attribute to null while calling PATCH /api/v2/users/{id} endpoint is only working for only a few attributes like family_name , given_name , name , nickname , picture.

We have an internal flag helps to remove the root attributes. This flag still doesn’t work for all fields like username and user_id but can be used to remove any customer-specific root attributes. Please reach out to our Support team if you want to remove root attributes.

While calling PATCH /api/v2/users/{id} endpoint set the attributes in the payload that needs to be clear as below.

{
   "attribute-name-1":null,
   "attribute-name-2":null,
   ..more..
}