Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] GCP serviceAccounts.list needs to paginate or this never works in projects with > PAGE_SIZE service accounts #938

Open
chicagobuss opened this issue Jul 28, 2024 · 0 comments

Comments

@chicagobuss
Copy link

service_accounts = service.projects().serviceAccounts().list(name="projects/" + self.project_id).execute()["accounts"]

I set pageSize to 100 (the max) to resolve my personal issue with this but a proper implementation would keep going until it finds a match or exhausts them all.

@chicagobuss chicagobuss changed the title service accounts list needs to paginate or this never works in projects with > PAGE_SIZE service accounts [bug] GCP serviceAccounts.list needs to paginate or this never works in projects with > PAGE_SIZE service accounts Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant