Skip to content

Instantly share code, notes, and snippets.

@akoserwal
Created August 23, 2024 20:23
Show Gist options
  • Save akoserwal/dfc3b0b3e322e31d833933d6213a73d4 to your computer and use it in GitHub Desktop.
Save akoserwal/dfc3b0b3e322e31d833933d6213a73d4 to your computer and use it in GitHub Desktop.
fetch-user-of-service-account
SVC=`curl -sk --header "Content-Type: application/json" --header "Authorization: Bearer $TOKEN" $KEYCLOAK_URL/admin/realms/$REALM/clients/$kasClientId/service-account-user`
svcUserId=$(jq -r '.id' <<< $SVC)
echo $svcUserId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment