evroc iam rolebinding assign

Assign a role to a principal

evroc iam rolebinding assign [flags]

Examples


	# Assign a role to a user in the current project
	$ evroc iam rolebinding assign --principal /iam/users/<user-id> --role /iam/roles/<role>

	# Assign a role with resource scoping
	$ evroc iam rolebinding assign --principal /iam/users/<user-id> --role /iam/roles/<role> --resource /compute/projects/p1/regions/r1/vms/vm-1
	

Options

  -h, --help               help for assign
      --organization       Assign in the current organization instead of project
      --principal string   Principal FQID (e.g. /iam/users/<user-id>)
      --resource strings   Optional resource FQIDs to scope the role to
      --role string        Role FQID (e.g. /iam/roles/organizationViewer)

Options inherited from parent commands

      --config string   Path to the evroc config file (default "~/.evroc/config.yaml")

SEE ALSO