You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But getting a APIException and the exception description says:
Additional properties not allowed: identities,updated_at,created_at,family_name,given_name,nickname,name,picture,user_id
(consider storing them in app_metadata or user_metadata. See "Users Metadata" in https://auth0.com/docs/api/v2/changes for more details)
"I'll track this so we can add support to modify this fields in the near future, only for users that have been created in a database connection (not from any other IdP)."
that thread is old , did they implemented it , please let me know
Question: how can I update a the username and password of existing user profile, Or how can I update that user profile ?
Thanks in advance :)
The text was updated successfully, but these errors were encountered:
Hi @shoikot,
In the same post you've linked says they removed the edition of those fields at the root level of the profile. The current way to add custom fields as of Management API v2 is to save values in user_metadata using the PATCH /v2/users. With this same method you can update the username and password values if you like. Keep in mind that username and password cannot be both updated in the same call. Check that your code looks similar to this:
UserupdatedUser = newUser("your-db-connection");
//update either the password//updatedUser.setPassword("new-password");//or the username//updatedUser.setUsername("new-username");Map<String, Object> userMetadata = newHashMap<>();
userMetadata.put("age", "35");
//add more fieldsupdatedUser.setUserMetadata(userMetadata);
ManagementAPImgmtAPI = newManagementAPI("domain.auth0.com", "the-api-token");
mgmtAPI.users().update("the-user-id", updatedUser).execute();
I'm trying to update a existing Users' username and password with this method https://github.com/auth0/auth0-java#update
But getting a APIException and the exception description says:
I've followed this thread : https://auth0.com/forum/t/apiv2-payload-validation-error/372/4 , where someone named 'yenkel' said
that thread is old , did they implemented it , please let me know
Question: how can I update a the username and password of existing user profile, Or how can I update that user profile ?
Thanks in advance :)
The text was updated successfully, but these errors were encountered: