USER_PROJECT_DENIED in set project quota

My email account is set up with owner permissions +9 other permissions including service usage admin 

I can't seem to get access to set project quota in my vscode terminal through gcloud. The project and account are correct. What might I be missing?

ERROR: (gcloud.auth.application-default.set-quota-project) User (xxxxxxxxxxxx) does not have peress projects instance

USER_PROJECT_DENIED    

The project does exist and my email has all the appropriate permissions and then some...

0 1 114
1 REPLY 1

If your account has already been granted Service Admin or Service Usage Consumer, I believe you have the necessary permission to set a project as the quota project, or use that quota project in a request. 

On the other hand, before running the command “gcloud auth application-default set-quota-project”, as quoted in the documentation:

“Before running this command, an ADC must already be generated using “$ gcloud auth application-default login”. The quota project defined in the ADC will be used by the Google client libraries. The existing application default credentials must have the serviceusage.services.use permission on the given project.”

Once you have run the command:

 

gcloud auth application-default login

 

or run using the --scopes flag, see below example:

 

gcloud auth application-default login --scopes="https://www.googleapis.com/auth/assistant,https://www.googleapis.com/auth/cl
oud-platform"

 

You can then proceed running the command:

 

gcloud auth application-default set-quota-project QUOTA_PROJECT_ID

 

You can check this documentation if you are using client libraries.

Hope this helps.