ucd-library / aggie-experts

Publicly reported feedback and issues for Aggie Experts
https://ucd-library.github.io/aggie-experts/
MIT License
1 stars 2 forks source link

Add IAMID to keycloak #448

Closed qjhart closed 2 weeks ago

qjhart commented 2 weeks ago

We added ucdPersonUUID to the a users' keycloak environment, but this is based on mothraId, and may not be used for future users. The IAM team suggest that we use the iamId entry, because that will continue. They also suggested that iamId is public data, so that's an added benefit.

qjhart commented 2 weeks ago

Although it hasn't been moved to production, I used updates in #375765d to add these to the existing keycloak setup.

First I saved the users with:

bin/experts-keycloak.js --users | jq . | tee users.json

Then, I updated the users with:

bin/experts-keycloak.js --users | jq -r '.[]|.email'  | xargs bin/experts-keycloak.js --add=iamId --log=error