Repository navigation
Assigning Users to Organizations in Keycloak 26.0.6 #37542
Answered
by
dkc6gh
JavierMartinez07
asked this question in
Q&A
|
Hello everyone, I’m working with Keycloak 26.0.6, and I have enabled the Organizations feature in my realm. 📌 Context:
📌 What I'm trying to do:According to the official Keycloak documentation, the request to add a user to an organization should look like this: curl -X POST "http://localhost:8080/admin/realms/Development/organizations/{ORG_ID}/members" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": "12345678-90ab-cdef-1234-567890abcdef"
}'Where:
📌 The Issue:When I send this request, I receive the following error: {
"errorMessage": "User does not exist"
}Even though I have verified that the user does exist in the realm, and I can retrieve their information using a curl -X GET "http://localhost:8080/admin/realms/Development/users?username={USERNAME}" \
-H "Authorization: Bearer $TOKEN"📌 Questions:
📞 Reference Documentation:I’d really appreciate any guidance, experiences, or additional references on this topic. Thanks in advance! 🙌 |
Answered by
dkc6gh
Mar 11, 2025
Replies: 1 comment 1 reply
1 reply
Answer selected by
JavierMartinez07
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#34529