How to Set Up a Restricted Admin Account for Google Workspace Backup
Barracuda Cloud-to-Cloud Backup uses one admin account in your Google Workspace domain to discover the users, mailboxes, and shared drives to back up. This account uses domain-wide delegation to access your organization's data through the Google API. The account does not need a Google Workspace license and does not need Super Admin rights. It only needs the specific admin privileges listed below.
Note: If you need to back up Google Classroom, use a Super Admin account instead. See How to Set Up a Super Admin Account for Google Workspace Backup.
What the Admin Account Needs
This admin account requires four specific privileges:
Privilege | Why Cloud-to-Cloud Backup Needs It | Data Sources |
|---|---|---|
Read Customer | Reads your organization display name | All |
Users > Read | Lists the users to back up | All (Gmail, Drive, Calendar, Contacts) |
License Management > License Read | Reads the license of each user to determine which users are billable | Gmail |
Drive and Docs | Lists the shared drives to back up | Drive |
Tip: Give the account all four privileges even if you are not backing up all data sources now. This allows you to add data sources later without modifying the account.
Option 1: Use the Setup Script (Recommended)
The setup script automates the entire process of creating the admin account, assigning privileges, and removing licenses. You create the script in your own Google account, and the script code is available in our public GitHub repository so you can review it before running.
Prerequisites
You must be signed in to Google as a Super Admin.
Steps
Log in to Google as a Super Admin.
Open https://script.google.com and click New project.
Name the project (for example, “Barracuda CCB setup”).
Delete the example code in
Code.gs.Open the restricted admin setup script and copy all of the code from here: gws-restricted-admin-setup.gs
Paste the script into
Code.gs.In the left panel, next to Services, click +. Add Admin SDK API. Then click + again and add Enterprise License Manager API. Keep the default identifiers (
AdminDirectoryandAdminLicenseManager).Click Save project.
In the function list at the top, select
setupRestrictedAdmin. Click Run.When Google asks, review the permissions and allow them. The script needs these permissions to manage users, organizational units, admin roles, and licenses in your domain.
The script automatically reads your primary domain and performs these actions:
Creates the organizational unit
/Automation(if it does not exist).Creates the custom admin role
CCB Read Accesswith the four privileges listed above. If the role already exists, the script updates it with the correct privileges.Creates the user
ccb-reader-admin@<your-primary-domain>in/Automationwith a random password. Nobody signs in as this user.Assigns the
CCB Read Accessrole to the user for the whole organization.Removes any Google Workspace license from the user. The free Cloud Identity license stays. If your domain assigns licenses automatically, refer to the next step.
If the log shows "One more step is necessary", your domain assigns licenses automatically. Google does not let the script remove an automatically assigned license.
Turn off automatic licensing for the
/Automationorganizational unit.Run the script again.
Open Execution log. Copy the email address from the last line:
Use this email address when you connect CCB to your Google Workspace: ...In the Barracuda connection wizard, enter the email address in the Admin email field.
You can delete the Apps Script project after the script completes. The account and role stay in your Google Workspace domain.
Option 2: Set Up the Account Manually
If you prefer not to use the script, you can create the admin account manually through the Google Admin console.
Log in to the Google Admin console as a Super Admin.
Go to Directory > Users and add a new user.
Make sure the user has no Google Workspace license. If your domain assigns licenses automatically, remove the license from the user. The Cloud Identity Free license always remains attached to the user.
Go to Account > Admin roles and create a new role.
Add the four privileges from the table above to the role:
Read Customer
Users > Read
License Management > License Read
Drive and Docs
Assign the role to the new user.
In the Barracuda connection wizard, enter the email address of the new user in the Admin email field.
Important Notes
Do not suspend or delete this user. Backups stop if the user is suspended or deleted.
Do not remove privileges from the role. A missing privilege causes the connection check to fail or causes later backups to fail.
Domain-wide delegation is separate. A Super Admin must still set up domain-wide delegation in the connection wizard. This account setup is only the first step.
Troubleshooting
The script says "One more step is necessary"
Your domain automatically assigns Google Workspace licenses. The account works with a license, but it uses a paid seat.
To remove the license, turn off automatic licensing for the /Automation organizational unit in the Google Admin console, then run the script again.