Our internal API gives users static tokens for CLI and scripted access. The tokens keep the permissions they had when created, even if the user's role changes, and people have to copy and store them themselves.
What are good alternatives? I'm especially interested in SSO for a CLI, the cost of checking current permissions, and how to handle longer-running scripts.
wobble~switch:
Also check how role changes reach the store you're querying. A fresh lookup still won't see a removal that hasn't propagated there yet.