# diagrid serviceaccount update

Update a service account

```
diagrid serviceaccount update <name> [flags]
```

### Examples

```

  # Update a service account's role
  diagrid serviceaccount update my-sa --role admin

  # Update the owner and description at the same time
  diagrid serviceaccount update my-sa --owner team@example.com --description "CI automation account"

```

### Options

```
      --owner string         Owner of the service account
      --role string          Role for the service account
      --description string   Description of the service account
  -h, --help                 help for update
```

### Options inherited from parent commands

```
      --api-key string   Diagrid Cloud API key
```

### SEE ALSO

- [diagrid serviceaccount](./serviceaccount.md)	 - Manage service accounts
