Skip to content

Commit

Permalink
remove demorealm from add user to group kcadm command. feels like the…
Browse files Browse the repository at this point in the history
…y are doubled, have to try out... guess everything after -r master could be removed.
  • Loading branch information
DGuhr committed Jan 27, 2023
1 parent 61a83f6 commit 7787551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion initialize-poc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ echo "Now that we simulate an orgs admin, we can let them create a group that sh
echo "ok now lets add a user to the previously created group... in order to do that we need the userId and the groupId."
paulaUid=$(/opt/keycloak/bin//kcadm.sh get users -r master -q username=paula --fields=id | awk -F':' '{print $2}' | grep . | tr -d "\"" | sed -e 's/^[[:space:]]*//')
myGroupUid=$(/opt/keycloak/bin//kcadm.sh get groups -r master -q name=MyGroup --fields=id | awk -F':' '{print $2}' | grep . | tr -d "\"" | sed -e 's/^[[:space:]]*//')
/opt/keycloak/bin/kcadm.sh update users/$paulaUid/groups/$myGroupUid -r master -s realm=demorealm -s userId=$paulaUid -s groupId=$myGroupUid -n
/opt/keycloak/bin/kcadm.sh update users/$paulaUid/groups/$myGroupUid -r master -s realm=master -s userId=$paulaUid -s groupId=$myGroupUid -n

0 comments on commit 7787551

Please sign in to comment.