I have several projects under an organization in GCP.I have an service account with certain scopes set on a project (for automation).I wanted to add the same service account to all other projects as an member, I did manually until now.
is there any way I can automate this, like whenever a project is created the service account along with its scopes should be added as its member?
It's the purpose of the ressource hierarchy. Create a service account (in a project, a service account can only live in a project) and then grant it at the organization or the folder level; with the permission that you want
But be careful, the permission will be the same for all the child resources and you haven't the possibility to deny these permissions (at least, for now!). See IAM Policy Inheritance