Assigning role to Group in GCP causing Role does not exist in the resource's hierarchy

Viewed 1168

I am trying to assign below role to group in Gcp

Role : - Service Consumer

role id: - roles/servicemanagement.serviceConsumer

Command:- gcloud projects add-iam-policy-binding Project_id --member=group:group1 --role=roles/servicemanagement.serviceConsumer

Error : -

ERROR: Policy modification failed. For a binding with condition, run "gcloud alpha iam policies lint-condition" to identify issues in condition.

ERROR: (gcloud.projects.add-iam-policy-binding) INVALID_ARGUMENT: Role (roles/servicemanagement.serviceConsumer) does not exist in the resource's hierarchy.

1 Answers
Related