## NAME

gdcloud iam service-accounts - Manage project's service accounts and keys.

## SYNOPSIS

    gdcloud iam service-accounts GROUP | COMMAND [flags]

## DESCRIPTION

Create, list, delete project's service accounts, or grant permissions for a project's service account. A subcommand group "gdcloud iam service-accounts keys" manages service accounts' credentials. You must have the "project-iam-admin" role in a project to manage the service accounts and keys for that project.

### EXAMPLES


      To list all the service accounts from project "iam-test", run:

        gdcloud iam service-accounts list --project=iam-test

      To create a service account of name "psa-test" for project "iam-test", run:

        gdcloud iam service-accounts create psa-test --project=iam-test

      To delete a service account of name "psa-test" from project "iam-test", run:

        gdcloud iam service-accounts delete psa-test --project=iam-test

      To grant the project role of name "pr-test" for project's service account "psa-test" in project "iam-test", run:

        gdcloud iam service-accounts add-iam-policy-binding --role=ProjectRole/pr-test --iam-account=psa-test --project=iam-test

### GDCLOUD WIDE FLAGS

These flags are available to all commands: `--help`.

For more information, see the [gdcloud CLI reference overview](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-reference/gdcloud) page.

### GROUPS

`GROUP` is one of the following:

    keys
        Manage keys for a project's service account.

### COMMANDS

`COMMAND` is one of the following:

    add-iam-policy-binding
        Grant a Role/ProjectRole/ClusterRole/OrganizationRole to a service account.
    create
        Create a new service account for a project.
    delete
        Delete a service account from a project.
    list
        List all the service accounts from a project