We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The endpoints /users/id and /users return different results for the enabled field for the same user when the user is temporarily locked.
/users/id
/users
enabled
16.0.0, 15.0.1
Both the endpoints should return the same data for the same user.
The user details via the /users?username=user endpoint wrongly returns enabled: true
/users?username=user
enabled: true
Get the user details via the /users?username=user endpoint. Wrongly returns enabled: true
$ curl -k -X GET -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" $KC_URL/auth/admin/realms/master/users?username=user [ { "id": "21daeda5-86bc-406d-a687-fa4231bc6b54", "createdTimestamp": 1631277330288, "username": "user", "enabled": true, "totp": false, "emailVerified": false, "disableableCredentialTypes": [], "requiredActions": [], "notBefore": 0, "access": { "manageGroupMembership": true, "view": true, "mapRoles": true, "impersonate": true, "manage": true } } ]
Get the user details via the /users/id endpoint. Correctly returns enabled: false
$ curl -k -X GET -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" $KC_URL/auth/admin/realms/master/users/21daeda5-86bc-406d-a687-fa4231bc6b54 { "id": "21daeda5-86bc-406d-a687-fa4231bc6b54", "createdTimestamp": 1631277330288, "username": "user", "enabled": false, "totp": false, "emailVerified": false, "disableableCredentialTypes": [], "requiredActions": [], "notBefore": 0, "access": { "manageGroupMembership": true, "view": true, "mapRoles": true, "impersonate": true, "manage": true } }
This issue was migrated from https://issues.redhat.com/browse/KEYCLOAK-19273. It was originally created 2021/09/10 by @bhorkarg.
The text was updated successfully, but these errors were encountered:
Closing as not planned. #8432 (comment)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
The endpoints
/users/id
and/users
return different results for theenabled
field for the same user when the user is temporarily locked.Version
16.0.0, 15.0.1
Expected behavior
Both the endpoints should return the same data for the same user.
Actual behavior
The user details via the
/users?username=user
endpoint wrongly returnsenabled: true
How to Reproduce?
Get the user details via the
/users?username=user
endpoint. Wrongly returns enabled: trueGet the user details via the
/users/id
endpoint. Correctly returns enabled: falseAnything else?
This issue was migrated from https://issues.redhat.com/browse/KEYCLOAK-19273. It was originally created 2021/09/10 by @bhorkarg.
The text was updated successfully, but these errors were encountered: