# Search users with usernames
curl --location 'http://localhost:8000/users?org_id=rh&usernames=mgr1-test%2Ceng1-test'
# Search users with emails
curl --location 'http://localhost:8000/users?org_id=rh&emails=1%401.com%2C2%402.com'
# Search users with userids, remember to replace user ids below as they will be different in your case.
curl --location 'http://localhost:8000/users?org_id=rh&user_ids=c2979a54-b50e-473a-8ff8-0710f701e64f%2C3c577a73-d15a-4130-968b-1fdab10e0ee0'
Docker Tasks using Makefile
Build userservice Docker image
make docker-build
Push userservice Docker image
make docker-push
Using different environment variables with .env files
Currently the .env file is used for running the userservice locally on the host machine.
.env.docker file is used for running the userservice in docker on the host machine with Keycloak service.
Setting KEYCLOAK_ACCESS_TOKEN_PUBLIC_KEY property: This should be the public key used to get generate the JWT token. You can get this from keycloak at this path - Login to keycloak with admin privileges --> Go to the realm --> Realm settings --> keys tab --> By default JWT generations uses RS256, but you need to pick correct algorithm --> click on public key -- Copy and update the .env file. You can find default signature algorithm under realm settings --> tokens tab --> General section --> Default Signature Algorithm