Created
August 23, 2024 20:23
-
-
Save akoserwal/dfc3b0b3e322e31d833933d6213a73d4 to your computer and use it in GitHub Desktop.
fetch-user-of-service-account
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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