title: Unable to deploy a firebase cloud function due to permission error
body: <p>I was trying to deploy my first firebase cloud function using firebase cli but I encountered an error instead :</p>
  <pre><code>C:\Users\Anurag Tripathi\Desktop\firebasecloudfunction&gt; firebase deploy --only functions
  
  Error: Missing permissions required for functions deploy. You must have permission iam.serviceAccounts.ActAs on service account  project_number@appspot.gserviceaccount.com.
  
  To address this error, ask a project Owner to assign your account the &quot;Service Account User&quot; role from this URL: 
          https://console.cloud.google.com/iam-admin/iam?project=project_number
  </code></pre>
  <p>I tried to solve the problem by following the instruction but didn't get any success . Please help.</p>
  <p>Edit : I have abandoned the project :( , so I really can't test the answers. Thanks all for the answers and comments. I will accept the most upvoted answer.</p>