Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda Cloud Backup
Results will update as you type.
  • Release Notes
  • Exchange Web Services (EWS) Deprecation and Barracuda Cloud-to-Cloud Backup
  • Getting Started
  • How Barracuda Cloud-to-Cloud Backup Can Protect You from Ransomware
  • Understanding What Data is Backed Up
  • License Definitions
  • Expired Subscriptions
  • Offboarding Guide for Cloud-to-Cloud Backup
  • How to Activate Cloud-to-Cloud Backup
  • Available Locations
  • Understanding Barracuda Cloud-to-Cloud Backup Permissions for Microsoft 365
  • How to Add a Connection
    • How to Connect to Your Microsoft Tenant
    • How to Connect to Your Google Workspace Domain
      • How to Set Up a Restricted Admin Account for Google Workspace Backup
      • How to Set Up a Super Admin Account for Google Workspace Backup
  • How to Reauthorize a Connection
  • How to Configure Your Data Source
  • How to Configure Retention Policies
  • How to Back Up and Restore Your Data
  • Dashboard
  • Backup Page
  • Restore Page
  • Activities Page
  • Reports Page
  • Settings Page
  • Advanced Configuration
  • Troubleshooting

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    How to Set Up a Restricted Admin Account for Google Workspace Backup
    Published Nov 20

    How to Set Up a Restricted Admin Account for Google Workspace Backup

    Subscribe

    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

    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

    1. Log in to Google as a Super Admin.

    2. Open https://script.google.com and click New project.

    3. Name the project (for example, “Barracuda CCB setup”).

    4. Delete the example code in Code.gs.

    5. Open the restricted admin setup script and copy all of the code from here: gws-restricted-admin-setup.gs

    6. Paste the script into Code.gs.

    7. 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 (AdminDirectory and AdminLicenseManager).

    8. Click Save project.

    9. In the function list at the top, select setupRestrictedAdmin. Click Run.

    10. 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.

    11. 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 Access with 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 /Automation with a random password. Nobody signs in as this user.

      • Assigns the CCB Read Access role 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.

    12. 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.

      1. Open https://admin.google.com/ac/billing/licensesettings.

      2. Turn off automatic licensing for the /Automation organizational unit.

      3. Run the script again.

    13. Open Execution log. Copy the email address from the last line:
      Use this email address when you connect CCB to your Google Workspace: ...

    14. 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.

    1. Log in to the Google Admin console as a Super Admin.

    2. Go to Directory > Users and add a new user.

    3. 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.

    4. Go to Account > Admin roles and create a new role.

    5. Add the four privileges from the table above to the role:

      • Read Customer

      • Users > Read

      • License Management > License Read

      • Drive and Docs

    6. Assign the role to the new user.

    7. 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.

     


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 12, "requestCorrelationId": "4aa09c8105914dc1bcddb9033486bc83"}