anaconda / ae5-tools

A command-line tool for scripting AE5 actions
https://www.anaconda.com/enterprise/
BSD 3-Clause "New" or "Revised" License
9 stars 8 forks source link

Added user "realm roles" to `user list` #158

Closed joshburt closed 1 year ago

joshburt commented 1 year ago

Copyright date, repo url, and additional ignores for macos and anaconda-project

joshburt commented 1 year ago

What?

Why?

How?

From https://www.keycloak.org/docs-api/12.0/rest-api/#_userrepresentation

   Get realm-level role mappings:
   GET /{realm}/groups/{id}/role-mappings/realm

Option 1 (Current implementation)

Option 2 (Alternative)

If there are a lot of users optional 1 will be slow. If there are a lot of roles then option 2 will be slow. There might also be different endpoints which provide all the user or role level information in a single call. I'm new to KeyCloak so this could easily be the case. :)

How was this tested?

Possible Discussion Points

joshburt commented 1 year ago

I've pull the integration test runner, tests, and supporting code out until I get gitHub Action execution resolved. The remaining code was migrated to https://github.com/Anaconda-Platform/ae5-tools/pull/159 and will be submitted from there.