Home > Perform Microsoft Teams Migrations > Required Permissions for Microsoft Teams Migration > Destination Permissions for Google Chat Space
Export to PDFTo migrate to the destination Google Chat Space, the Super Admin can refer to to connect your Google tenant to AvePoint Online Services at first. Then, you need to create a custom Google app profile in AvePoint Online Services > Management > App management to connect to the Google tenant.
Refer to the following section for details about how to create a custom Google app profile with required permissions.
To use a custom Google app profile, refer to the following steps and required permissions:
Click Create on the App management page in AvePoint Online Services.
In the Select services step, select a Google tenant, and choose Fly.
Click Next to go to the Choose setup method step.
In the Choose setup method step, select the Custom mode.
Click Next to go to the Consent to apps step.
In the Consent to apps step, enter the app profile name, admin account, Google service account, and private key of your app.
Click Finish.
Refer to the following sections about permissions required for the custom app.
Make sure the following APIs are enabled in the projects where the service accounts are created.
Refer to the following steps to enable the APIs:
*Note: The user must be the project owner to enable the APIs.
Go to .

Click the API you want to enable respectively.
Click ENABLE on the top of the page to enable the corresponding API.
Click Google Chat API and click Manage to access the API/Service Details page.

Click the CONFIGURATION tab and configure the application information.
App name – Enter a name for the app.
Avatar URL – Provide an icon for the app. Any valid URL is acceptable.
Description – Enter a brief description for the app.
Interactive features – Disable the Interactive features.

Click SAVE to save the configurations.
Make sure the API Access in your Google Workspace environment is enabled. Follow the provided by Google to ensure all your settings meet the requirements.
Make sure the Admin account has the following custom roles.
| Type | Admin Account Permission | Purpose |
|---|---|---|
| Google Drive | Users > Read | Migrate to user drives. |
| Google Drive | Drive and Docs > Settings | Migrate to shared drives. |
| Google Drive | Manager of Shared Drive | Migrate to shared drives.*Note: If you do not want to give the manager access to the Admin account, you can ignore this requirement, but there must be an available manager in the shared drive. |
| Google Chat | Settings (Read and Modify) | Update the properties of Google Chat spaces. |
| Google Chat | Manage chat and spaces conversation | List and manage Google Chat spaces. |
To manage the roles of the Admin account, refer to the following steps:
*Note: The user must be the super administrator to manage roles.
Go to the Google .
Click Manage in the Users section.
Click the user you want to assign the roles. The user profile page appears.
Click the down arrow (
) button in the Admin roles and privileges section.
Click the Edit (
) button in the upper-right corner of the Roles section.


Click Create new role.
Enter a name for the current role, and click CONTINUE.
In the Admin console privileges section, select the Read privilege under the Users section. To migrate shared drives, select the Settings checkbox under the Drive and Docs section. Then, click CONTINUE.
Click CREATE ROLE. The custom role will be listed in the Roles section.
Click SAVE.
To allow users to access Google Drive with the Drive SDK API, refer to the following steps:
Go to the Google .
Navigate to Apps > Google Workspace > Drive and Docs.
Click Features and Applications.
Make sure the Allow users to access Google Drive with the Drive SDK API option is ON.
To give the User/Group account the Manager access to shared drives, refer to the following steps:
*Note: The user must have the admin role to provide access.
Go to the Google .
Navigate to Apps > Google Workspace > Drive and Docs.
Click Manage shared drives.
Hover your mouse over the shared drive you want to manage, and click Manage members.
Add the User/Group account and click the down arrow (
) button next to the account. Then, select Manager and click Send.
If the User/Group account is already a member of the shared drive, select the Manager access and click Done to save your changes.
To allow users to access Google Chat with the Chat SDK API, refer to the following steps:
Go to the Google .
Navigate to Apps > Google Workspace > Google Chat.
Make sure the Service Status option is ON.
To use a Google service account, refer to the following steps:
*Note: The user must be the project owner to manage service accounts.
Go to the Google .
Select the desired project. The accounts in the projects are displayed.
To create a new service account, refer to the following steps:
*Note: If you want to use an existing service account to add the Google Workspace connection, ignore this step.
Click CREATE SERVICE ACCOUNT.

) button of an existing service account, click Manage keys, click ADD KEY, and then select Create new key. Select the JSON type and click CREATE to download the private key file.*Note: If the service account key creation is disabled in your organization, enable it first by the following steps.

*Note: Make sure the current project is the project where you create the service account.




*Note: If you are required to have the Organization Policy Administrator role, refer to for details.

Go to the Google using the Super administrator credentials.
Navigate to Security > Overview > API controls.
Click MANAGE DOMAIN WIDE DELEGATION.
On the Domain-wide Delegation page, click Add new.

Enter the client ID of the service account in the Client ID field. The client ID can be found in the "client_id": " " node of the .json file in step 5.
Enter the following scopes in the OAuth scopes field:
The table below lists why the scopes are needed:
| Google Scopes Permission | Purpose |
|---|---|
| https://www.googleapis.com/auth/admin.directory.user.readonly | Retrieve destination users. |
| https://www.googleapis.com/auth/admin.directory.group.readonly | Retrieve destination groups. |
| https://www.googleapis.com/auth/drive | Migrate folders and files. |
| https://www.googleapis.com/auth/apps.licensing | Used to retrieve license information. |
| https://www.googleapis.com/auth/admin.reports.usage.readonly | Retrieve size usage of users. |
| https://www.googleapis.com/auth/chat.messages | Operate message. |
| https://www.googleapis.com/auth/chat.memberships | Get/add space member. |
| https://www.googleapis.com/auth/chat.admin.memberships.readonly | Get and admin space member. |
| https://www.googleapis.com/auth/chat.spaces | Get and add space. |
| https://www.googleapis.com/auth/chat.admin.spaces.readonly | Get and add admin space. |
| https://www.googleapis.com/auth/chat.import | Import space by import mode. |
| https://www.googleapis.com/auth/spreadsheets | Migrate metadata to Google sheets. |