gcloud alpha transfer authorize Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud alpha transfer authorize - authorize an account for all Transfer Service features
- SYNOPSIS
gcloud alpha transfer authorize[--add-missing][--creds-file=CREDS_FILE][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(ALPHA)Authorize a Google account for all Transfer Servicefeatures.This command provides admin and owner rights for simplicity. If that's too muchauthority for your use case, see custom setups here:https://cloud.google.com/storage-transfer/docs/on-prem-set-up
- EXAMPLES
- To see what Transfer Service IAM roles the account logged into gcloud may bemissing, run:
gcloudalphatransferauthorizeTo add the missing IAM roles, run:
gcloudalphatransferauthorize--add-missingTo check a custom service account for missing roles, run:
gcloudalphatransferauthorize--creds-file=path/to/service-account-key.json - FLAGS
--add-missing- Add IAM roles necessary to use all Transfer Service features to the specifiedaccount. By default, this command just prints missing roles.
--creds-file=CREDS_FILE- The path to the creds file for an account to authorize. The file should be inJSON format and contain a "type" and "client_email", which are automaticallygenerated for most creds files downloaded from Google (e.g. service accounttokens). If this flag is not present, the command authorizes the user currentlylogged into gcloud.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. This variant is also available:
gcloudtransferauthorize
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.