I am trying to create a ServiceAccount using Google cloud api. I am an Oauth client to authenticate on behalf of an user. I am using the correct scope. I am still getting the error 403: Permission iam.serviceAccounts.create is required to perform this operation on project projects/xyz.
This code used to work before. I saw that the new docs also mention this; https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/create
My question is what am I doing wrong. How do I fix this issue?