Using gcloud to create a project custom role by copying a predefined role returns: INVALID_ARGUMENT: Permission resourcemanager.projects.list is not valid. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Remove resourcemanager.projects.list from the role and retry..
Why this is the answer
The error "INVALIDARGUMENT: Permission resourcemanager.projects.list is not valid" indicates that the permission resourcemanager.projects.list cannot be included in a custom role. This is because resourcemanager.projects.list is a project-level permission that allows listing all projects a user has access to, and it cannot be scoped down to be part of a custom role for a specific resource. Custom roles are designed for fine-grained access control on specific resources, not for broad project discovery. Removing this permission resolves the invalid argument. Adding resourcemanager.projects.get or resourcemanager.projects.setIamPolicy would not address the invalidity of resourcemanager.projects.list. Retrying with a different role name but the same invalid permission would yield the same error.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed