Skip to content

How to backup Google Chats?

Google Chats backup support includes user chats and chat spaces and can be enabled in backup SLA settings on the Service → Settings → SLA tab in the Afi portal. In addition, to synchronize Google Chats data, you will need to manually grant access for the Afi Google Chats application in the Google Workspace Admin panel.

To set up Google Chats backup, please follow the steps below:

  1. Log in to the Google Workspace Admin panel, open the Security → Access and data control → API controls tab, and go to the Domain wide delegation section.

    Click on the Add new button to add the provided Afi Google Chats application client ID and OAuth scopes to the API clients list.

    Client ID: 108171606594064979307

    List of OAuth scopes (you can copy and paste it as is):

    https://www.googleapis.com/auth/userinfo.email,https://www.googleapis.com/auth/userinfo.profile,https://www.googleapis.com/auth/chat.memberships,https://www.googleapis.com/auth/chat.messages,https://www.googleapis.com/auth/chat.spaces,https://www.googleapis.com/auth/contacts.readonly,https://www.googleapis.com/auth/drive

    The same OAuth scopes are listed below in the more readable format. The application requests these scopes to query spaces, space membership, and messages, as well as download message attachments and query information about chat members.

    • https://www.googleapis.com/auth/userinfo.email
    • https://www.googleapis.com/auth/userinfo.profile
    • https://www.googleapis.com/auth/chat.memberships
    • https://www.googleapis.com/auth/chat.messages
    • https://www.googleapis.com/auth/chat.spaces
    • https://www.googleapis.com/auth/contacts.readonly
    • https://www.googleapis.com/auth/drive

  2. Enable Chats backup for backup SLA policies which you plan to use:

  3. Assign the configured backup SLA policies to users or organizational units/Google groups where you want Google Chats to be backed up.