Closed justmike1 closed 8 months ago
Well, this cannot work like you seem to want to:
err = client.UpdateUser(ctx, token.AccessToken, velotixRealm, supersetUserConfig)
if err != nil {
return err
}
Your supersetUserConfig lacks any kind of identifying property (subject ID). Do something like:
obj = <client>.fetch user by subject ID
obj.property = your update value
err = <client>.UpdateUser( ..., obj)
Attention: This is a PUT not a PATCH. It will not be enough to transmit the update-delta - you need to send it all.
worked, thank you!
Describe the bug A clear and concise description of what the bug is.
Cant use the UpdateUser & UpdateClient methods.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
200 status code response of updated user.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
gocloak version: 13.8 keycloak version: 22.0.1-2