skip to content
Alvin Lucillo

Auth0 update user

/ 1 min read

💻 Tech

If you’re using auth0/go-auth0 to update an auth0 user, chances are you encountered this error: Additional properties not allowed: logins_count,last_ip,last_password_reset,last_login. You might have called the api.User.Update(ctx, id, user) after changing some values of the user object. I couldn’t find any information online about that error, but what I understaood was that those fields are supposed to be not provided, so what I did was:

	user.LastIP = nil
	user.LoginsCount = nil
	user.LastLogin = nil
    user.LastPasswordReset = nil