Home > Aviator > Aviator for Microsoft 365 Groups > Permissions Required by Destination Microsoft 365 Groups
Export to PDFTo connect to the destination, you can choose to only use a service account, Fly app profile, or custom app profile as the authentication method. You can also use the combination of a service account and a Fly app profile, or the combination of a service account and a custom app profile.
Refer to the following sections to view the permissions required by the authentication methods.
With the Tenant Owner or Service Administrator role, you can create a Fly app profile in AvePoint Online Services > Management > App management to connect to the Microsoft 365 tenant using the Fly app.
Refer to Fly App Profile Permissions about how to create a Fly app profile and the required permissions of the Fly app profile.
With the authentication method of the Fly app profile only, if the destination is a multi-geo tenant, and the destination Groups need to be created in a defined location, you need to assign the Microsoft 365 Global Administrator, SharePoint Administrator, or Exchange Administrator role to the Fly app. You can refer to How to Assign the Exchange Administrator Role to an App? for examples of role assignment.
With the Tenant Owner and Service Administrator role, you can create a custom app profile in AvePoint Online Services > Management > App management to connect to the Microsoft 365 tenant using a custom Azure app.
Refer to the following procedures to create a custom app profile:
Prepare a certificate in Microsoft Entra ID. Refer to Prepare a Certificate for the Custom Azure App for more information.
You can ignore this step if you have a certificate.
Create a custom Azure app in Microsoft Entra ID. Refer to Create Custom Azure Applications for more information.
Create an App Profile for a Custom Azure App in AvePoint Online Services.
After you re-authorize the app profile, you need to wait about one hour before using the app profile for your migration to refresh the token if there are permissions updated.
Refer to the following tables to add API permissions required to the custom Azure app for Aviator copy Group jobs.
| API | Permission | Type | Purpose |
|---|---|---|---|
| Microsoft Graph | Directory.ReadWrite.All (Read directory data) | Application | Only required if the destination is multi-geo tenant with the following situations: The authentication uses the custom app profile only. The destination Groups need to be created in a defined location. |
| Microsoft Graph | Domain.Read.All | Application | Retrieve domains. |
| Microsoft Graph | RoleManagement.Read.Directory | Application | Retrieve directory roles. |
| Microsoft Graph | Group.ReadWrite.All (Read and write all groups) | Application | Retrieve and migrate Microsoft 365 Groups and Group members. |
| Microsoft Graph | Sites.Read.All (Read items in all site collections) | Application | Retrieve team sites. |
| Microsoft Graph | User.Read.All (Read all users’ full profiles) | Application | Retrieve information of Microsoft 365 user profiles. |
| Microsoft Graph | InformationProtectionPolicy.Read.All (Read all published labels and label policies for an organization) | Application | Only required if you want to manage sensitivity labels of files/emails/Teams/Groups/sites. |
| Microsoft Graph | Reports.Read.All (Read all usage reports) | Application | Only required by tenant discovery. *Note: This permission is not required by 21Vianet tenants. |
| Microsoft Graph | Tasks.ReadWrite.All (Read and write all users’ tasks and tasklists) | Application | Migrate planners and data in planners to the destination. *Note: This permission is not required by 21Vianet tenants. |
| Microsoft Graph | ReportSettings.Read.All (Read all admin report settings) | Application | Retrieve the Reports setting of the Microsoft 365 admin center. *Note: This permission is not required by 21Vianet tenants. |
| Office 365 Exchange Online | Exchange.ManageAsApp (Manage Exchange As Application) | Application | Use Exchange PowerShell to retrieve mailbox permissions. |
| Office 365 Exchange Online | Full_access_as_app (Use Exchange Web Services with full access to all mailboxes) | Application | Retrieve items from all mailboxes. *Note: If you do not want to add this permission to the app, you can create an RBAC assignment for the app to only access to specified mailboxes. Refer to option 3 in the How to Migrate Mailboxes without the ApplicationImpersonation Role? section for details. |
| SharePoint/Office 365 SharePoint Online | Sites.FullControl.All (Have full control of all site collections) | Application | Retrieve settings and permissions of team sites. |
| SharePoint/Office 365 SharePoint Online | TermStore.ReadWrite.All (Read and write managed metadata) | Application | Retrieve and migrate Managed Metadata Service. *Note: If the term groups/term sets/terms with the same name and level (global or local level) as the source ones exist in the destination, you can change this permission to TermStore.Read.All. |
| Azure Rights Management Services *Note: For 21Vianet tenants, the API name is Microsoft Rights Management Services. | Content.DelegatedWriter (Create protected content on behalf of a user) | Application | Only required if you want to manage the sensitivity labels of files/emails/Groups. |
| Azure Rights Management Services *Note: For 21Vianet tenants, the API name is Microsoft Rights Management Services. | Content.Writer (Create protected content) | Application | Only required if you want to manage the sensitivity labels of files/emails/Groups. |
| Microsoft Information Protection Sync Service | UnifiedPolicy.Tenant.Read | Application | Only required if you want to manage the sensitivity labels of files/emails/Groups. |
For easy use, you can directly use the following commands to add required API permissions through Manifest for Microsoft 365 Commercial tenants.
Refer to the following tables to add API permissions required to the custom Azure app for Aviator merge Group jobs.
| API | Permission | Type | Purpose |
|---|---|---|---|
| Microsoft Graph | Domain.Read.All | Application | Retrieve domains. |
| Microsoft Graph | RoleManagement.Read.Directory | Application | Retrieve directory roles. |
| Microsoft Graph | Group.ReadWrite.All | Application | Retrieve and migrate Microsoft 365 Groups and Group members. |
| Microsoft Graph | Sites.Read.All (Read items in all site collections) | Application | Retrieve team sites. |
| Microsoft Graph | User.Read.All (Read all users’ full profiles) | Application | Retrieve information of Microsoft 365 user profiles. |
| Microsoft Graph | InformationProtectionPolicy.Read.All (Read all published labels and label policies for an organization) | Application | Only required if you want to manage sensitivity labels of files/emails/Teams/Groups/sites. |
| Microsoft Graph | Reports.Read.All (Read all usage reports) | Application | Only required by tenant discovery. *Note: This permission is not required by 21Vianet tenants. |
| Microsoft Graph | Tasks.ReadWrite.All (Read and write all users’ tasks and tasklists) | Application | Migrate planners and data in planners to the destination. *Note: This permission is not required by 21Vianet tenants. |
| Microsoft Graph | ReportSettings.Read.All (Read all admin report settings) | Application | Retrieve the Reports setting of the Microsoft 365 admin center. *Note: This permission is not required by 21Vianet tenants. |
| Office 365 Exchange Online | Exchange.ManageAsApp (Manage Exchange As Application) | Application | Use Exchange PowerShell to retrieve mailbox permissions. |
| Office 365 Exchange Online | Full_access_as_app (Use Exchange Web Services with full access to all mailboxes) | Application | Retrieve items from all mailboxes. *Note: If you do not want to add this permission to the app, you can create an RBAC assignment for the app to only access to specified mailboxes. Refer to option 3 in the How to Migrate Mailboxes without the ApplicationImpersonation Role? section for details. |
| SharePoint/Office 365 SharePoint Online | Sites.FullControl.All (Have full control of all site collections) | Application | Retrieve settings and permissions of team sites. |
| SharePoint/Office 365 SharePoint Online | TermStore.ReadWrite.All | Application | Retrieve and migrate Managed Metadata Service. *Note: If the term groups/term sets/terms with the same name and level (global or local level) as the source ones exist in the destination, you can change this permission to TermStore.Read.All. |
| Azure Rights Management Services *Note: For 21Vianet tenants, the API name is Microsoft Rights Management Services. | Content.DelegatedWriter (Create protected content on behalf of a user) | Application | Only required if you want to manage the sensitivity labels of files/emails/Groups. |
| Azure Rights Management Services *Note: For 21Vianet tenants, the API name is Microsoft Rights Management Services. | Content.Writer (Create protected content) | Application | Only required if you want to manage the sensitivity labels of files/emails/Groups. |
| Microsoft Information Protection Sync Service | UnifiedPolicy.Tenant.Read | Application | Only required if you want to manage the sensitivity labels of files/emails/Groups. |
For easy use, you can directly use the following commands to add required API permissions through Manifest for Microsoft 365 Commercial tenants.
The service account permissions required by the destination are the same as Microsoft 365 Groups Migration. Refer to Service Account Permissions for details.
Fly allows you to use the Fly delegated app profile or custom delegated app profile to connect to your workspace.
The license and permission requirements for the consent user are the same as those for the service account. For details, refer to Service Account Permissions.
If the consent user of the delegated app profile has Multi-Factor Authentication (MFA) enabled, you must authorize or re-authorize the delegated app profile after MFA is enabled. Otherwise, the migration jobs using the delegated app profile will fail.
If you re-authorize the app profile, you need to wait about one hour before using the app profile for your migration to refresh the token when there are permissions updated.
The steps of creating a default or custom delegated app profile for the destination are the same as the steps in Delegated App Profile Permissions for the source.
For Fly delegated app profile permissions, refer to the table in Fly Delegated App Profile Permissions.
For custom delegated app profile permissions, refer to the sections below.
Make sure the custom delegated app has the following permissions.
| API | Permission | Type | Purpose |
|---|---|---|---|
| Microsoft Information Protection Sync Service | UnifiedPolicy.User.Read | Delegated | Only required if you want to manage the sensitivity labels of files/emails/Groups. |
| Microsoft Graph | Directory.Read.All (Read directory data) | Delegated | Only required if the destination is multi-geo tenant. |
| Microsoft Graph | Domain.Read.All | Delegated | Retrieve domains. |
| Microsoft Graph | RoleManagement.Read.Directory | Delegated | Retrieve directory roles. |
| Microsoft Graph | Group.Read.All | Delegated | Retrieve Microsoft 365 Groups and group members. |
| Microsoft Graph | Group.ReadWrite.All | Delegated | Required if the consent user is not the group owner of source Groups. Meanwhile, the consent user must have the Groups Administrator role. This can automatically add the consent user as the group owner. If the consent user is already the group owner, you can change this permission to Group.Read.All. |
| Microsoft Graph | Sites.Read.All | Delegated | Retrieve files of team sites. |
| Microsoft Graph | User.Read.All | Delegated | Retrieve information of Microsoft 365 user profiles. |
| Azure Rights Management Services *Note: For 21Vianet tenants, the API name is Microsoft Rights Management Services. | user_impersonation | Delegated | Only required if you want to manage the sensitivity labels of files/emails/Groups. |
| Office 365 Exchange Online | EWS.AccessAsUser.All | Delegated | Use Exchange Web Services with full access to user data via impersonation. |
| Office 365 Exchange Online | Exchange.Manage | Delegated | Retrieve mailbox permissions. |
| SharePoint/Office 365 SharePoint Online | AllSites.FullControl | Delegated | Retrieve settings and permissions of team sites. |
| SharePoint/Office 365 SharePoint Online | TermStore.Read.All | Delegated | Retrieve Managed Metadata Service data. |
For easy use, you can directly use the following commands to add required API permissions through Manifest.
Make sure the custom delegated app has the following permissions.
| API | Permission | Type | Purpose |
|---|---|---|---|
| Microsoft Information Protection Sync Service | UnifiedPolicy.User.Read | Delegated | Only required if you want to manage the sensitivity labels of files/emails/Groups. |
| Microsoft Graph | Domain.Read.All | Delegated | Retrieve domains. |
| Microsoft Graph | RoleManagement.Read.Directory | Delegated | Retrieve directory roles. |
| Microsoft Graph | Group.Read.All | Delegated | Retrieve Microsoft 365 Groups and group members. |
| Microsoft Graph | Group.ReadWrite.All | Delegated | Required if the consent user is not the group owner of source Groups. Meanwhile, the consent user must have the Groups Administrator role. This can automatically add the consent user as the group owner. If the consent user is already the group owner, you can change this permission to Group.Read.All. |
| Microsoft Graph | Sites.Read.All | Delegated | Retrieve files of team sites. |
| Microsoft Graph | User.Read.All | Delegated | Retrieve information of Microsoft 365 user profiles. |
| Azure Rights Management Services *Note: For 21Vianet tenants, the API name is Microsoft Rights Management Services. | user_impersonation | Delegated | Only required if you want to manage the sensitivity labels of files/emails/Groups. |
| Office 365 Exchange Online | EWS.AccessAsUser.All | Delegated | Use Exchange Web Services with full access to user data via impersonation. |
| Office 365 Exchange Online | Exchange.Manage | Delegated | Retrieve mailbox permissions. |
| SharePoint/Office 365 SharePoint Online | AllSites.FullControl | Delegated | Retrieve settings and permissions of team sites. |
| SharePoint/Office 365 SharePoint Online | TermStore.Read.All | Delegated | Retrieve Managed Metadata Service data. |
For easy use, you can directly use the following commands to add required API permissions through Manifest.