8000 Is there any way with kcadm.sh to create an organization and add members in it? · keycloak keycloak · Discussion #35572 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

I also ran into this. Got it to work by sending the user ID as the whole request body (-b), instead of JSON (-s id=...). That endpoint is a little odd it says it accepts JSON but really it's just plain text with just the user ID. See #34401

$ kcadm.sh create organizations/b3e797be-3c33-4720-8ece-bb9e6816eeda/members -r example -b 904b6bfa-3bbf-46e7-9fa6-6e10f9be7563

Created new member with id '904b6bfa-3bbf-46e7-9fa6-6e10f9be7563'

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bdovaz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
0