common-fate / granted

The easiest way to access your cloud.
https://granted.dev
MIT License
955 stars 90 forks source link

SSO populate does not work if the user has no accounts granted: max must be greater than 0 #654

Open moltar opened 1 month ago

moltar commented 1 month ago

If an SSO user has no grants (no accounts to access), the CLI fails to do the granted sso populate command.

[i] listing available profiles from AWS IAM Identity Center...
 100% |██████████████████████████████████| (2/2, 3 it/s)

max must be greater than 0

I think the CLI should handle it more gracefully and either just complete successfully, or also print a helpful message that no accounts were found.