To prepare Google Cloud permissions and storage, choose one of the following
options:

- Recommended: [Appliance Cloud Setup Application](https://docs.cloud.google.com/transfer-appliance/docs/4.0/permissions-application.md.txt). Within
  the Google Cloud Console, you activate Google Cloud Shell and download a
  small application. The application prompts you for values and configures
  Google Cloud permissions and storage. Then you send relevant data to the
  Transfer Appliance Team.

- [Step-by-step configuration](https://docs.cloud.google.com/transfer-appliance/docs/4.0/permissions-step-by-step.md.txt).
  You use either the Google Cloud console or a command line prompt to configure
  your Google Cloud permissions and storage. You apply all necessary changes
  and send relevant data to the Transfer Appliance Team.

## Service account quick reference

The service accounts that you need depend on the transfer mode. They are
configured during the setup process.

### Online transfer

For online transfer, only the following service accounts are required. For the
minimum roles and for instructions on manual setup, including using a service
account from a different project, see
[Prepare for online transfer](https://docs.cloud.google.com/transfer-appliance/docs/4.0/prepare-online.md.txt).

| Service Account | Roles Required in Customer Project | Role Required in Bucket | Comment |
|---|---|---|---|
| `ID@PROJECT_ID.iam.gserviceaccount.com` The appliance service account. The setup checklist creates it when you click **Create service account**. | Storage Transfer Agent, Storage Transfer User, Pub/Sub Editor, Monitoring Metric Writer | Storage Object Admin, Storage Legacy Bucket Reader | Its key (`key.json`) is uploaded to the appliance and used for online transfer. |
| `project-PROJECT_NUMBER@storage-transfer-service.iam.gserviceaccount.com` The project number belongs to your project. | Pub/Sub Editor | Storage Object Admin or Storage Admin | A Google-managed service agent for online transfer. |

### Offline transfer

The following service accounts are only required for offline transfer. If you
use online mode, you only need to authorize them if you switch the appliance
to offline mode and ship it back to Google.

| Service Account | Roles Required in Customer Project | Role Required in Bucket | Comment |
|---|---|---|---|
| `SESSION_ID@transfer-appliance-zimbru.iam.gserviceaccount.com` | N/A | Storage Admin | For offline transfer only |
| `project-TENANT_IDENTIFIER@storage-transfer-service.iam.gserviceaccount.com` The project identifier belongs to the tenant project. | N/A | Storage Admin | A Google-managed service agent for offline transfer only. |