> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/backup/microsoft-365.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Microsoft 365

## About Tina for Microsoft 365

Tina for Microsoft 365 is an optional module fully integrated with Tina. This module lets you back up and restore the following Microsoft 365 components:

* Exchange Online
* OneDrive for Business
* Microsoft Teams
* SharePoint Online

This guide provides all the information needed to install and configure Tina for Microsoft 365, as well as to perform backups and restores of Microsoft 365 components.

The information in this guide is intended for IT managers in charge of data protection, including backup and restore activities.

They should be familiar with:

* Tina Sotware
* Miscrosoft Azure
* Microsoft 365

## Create a Microsoft 365 application

To access the Microsoft 365 module in Tina, you must:

* Configure the Microsoft 365 application.
* Create and configure an agent for the Microsoft 365 application.
* Enable the Microsoft 365 application in the Web Admin Console.

Screenshots may not reflect the current version of Microsoft Azure, as Microsoft regularly updates the user interface.

### Create and configure a Microsoft 365 agent

#### Step 1: Create the agent

1. In the navigation pane, select the **Agents** tab.
2. At the bottom of the page, click **Add a new agent**.
3. The setup wizard appears. Choose **Application agent**, then **Microsoft 365**.
4. Click **Next**.
5. Select the system agent used to run the application, then enter the name of the application agent.
6. (Optional) If needed, you can disable the application agent immediately after creating it by selecting the Disabled status.
7. (Optional) If needed, enter a comment to describe the application agent.

#### Step 2: Configure the agent

You can enter the application settings:

* via easy setup, see [<mark style="color:blue;">To enter settings via easy setup.</mark>](#step-2-configure-the-agent)

> **Note**: Make sure you have administrator rights on Azure AD before performing this operation.

* manually, see [<mark style="color:blue;">To enter settings manually</mark>](#optional-step-3-configure-environment-variables)<mark style="color:blue;">.</mark>

**To enter settings via easy setup**

1. Click the **Automatic configuration** button.

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-06dfed97a889526817c9f03316a827cb377eba44%2Fimage%20(221).png?alt=media" alt=""><figcaption></figcaption></figure>
2. In the pop-up window that opens, click the ![](https://docs.atempo.com/tina/4.9.4/en/tina-for-microsoft-365/Content/Resources/Images/Images_Topics_Office-365/icon_CopytoClipboard.png) button to copy the code to the clipboard.

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-56e27f74f82a0c6f97eaac9d26ea8935e613823c%2Fimage%20(224).png?alt=media" alt="" width="519"><figcaption></figcaption></figure>
3. Click the **Link a Microsoft 365 account** button.

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-93a38410a29eb5d0fe62cf886f0244dab6f945bc%2Fimage%20(223).png?alt=media" alt="" width="513"><figcaption></figcaption></figure>
4. Paste the code into the text field of the Microsoft window, then click **Next**.
5. Choose an account:

   1. Choose the account you are signed in with, then confirm your login credentials.

   Or

   1. Select Use another account, then sign in with your credentials.

   > **Note**: Note: if this is the first time you are signing in from this device, you may be asked to enter your email address or phone number to confirm your identity.
6. Click **Continue**. The authentication process may take a few seconds.
7. Choose the account you want to sign in with ([step 6.](https://docs.atempo.com/tina/4.9.4/en/tina-for-microsoft-365/Content/Topics_M365/Create_An_Agent.htm?tocpath=Create%20a%20Microsoft%20365%20Application%7C_____1#Choose)). A list of requested permissions is displayed.
8. Click **Accept** to authorize Tina to copy your Microsoft 365 application from the Atempo Azure Active Directory portal to the Azure Active Directory portal used by your company. Your Microsoft 365 application has been configured successfully.
9. Click **Validate the Microsoft 365 account**, then choose the account used to sign in ([step 6.](https://docs.atempo.com/tina/4.9.4/en/tina-for-microsoft-365/Content/Topics_M365/Create_An_Agent.htm?tocpath=Create%20a%20Microsoft%20365%20Application%7C_____1#Choose)). A list of requested permissions is displayed.
10. Click **Accept** to authorize the Microsoft 365 application you just added to access your organization's resources and data.
11. In the Tina interface window, click **OK**. The Directory ID, Application ID, and Secret ID, as well as all required environment variables, are filled in automatically.

**To enter settings manually**

Enter the Microsoft Azure settings:

* **Directory ID**: Enter the Microsoft Azure directory ID. See Register a new application.
* **Application ID**: Enter the Microsoft Azure application ID. See Register a new application.
* **Secret ID**: Enter the Microsoft Azure client secret value. See Create a client secret.
* **User**: Enter the user name. You can provide a user name if you want to use the trusted authentication mode (environment variable) or the <kbd>tina\_restore</kbd> command line. When provided, no user authentication will be required when restoring data.
* **Password**: Enter the user's password.

#### (Optional) Step 3: Configure environment variables

1. (Optional) Change the selected path for the Microsoft 365 dynamic library.
2. (Optional) Select one or more optional environment variables and set a value for each variable.

   You can add a predefined environment variable or a custom environment variable. For more details on the values to use, see [Environment Variables.](#environment-variables)

   To save your credentials for future restores:

   * Make sure a user name and password have been provided in the Settings section of a new application agent.
   * In the **Optional environment variables** section, select the <kbd>TINA\_TRUSTED\_AUTHENTICATION\_MODE</kbd> variable, then set its value to **YES**.
3. Click **Finish** to confirm the creation of the new application.

### Enable the application

1. On the **Agents** tab, select your Microsoft 365 application.
2. Click the ![](https://docs.atempo.com/tina/4.9.4/en/tina-for-microsoft-365/Content/Resources/Images/Images_Topics_Office-365/icon_enabled.png) button to enable the agent.

To configure your application, you must now:

* Specify what to back up
* Create a backup selection
* Associate the strategy with the backup schedule

## Create a Microsoft Azure AD application

If you choose not to use the recommended easy setup method, you must create an application on your Microsoft Azure account. This application will allow Tina for Microsoft 365 to access the Microsoft Graph API and retrieve your Microsoft 365 data.

> **Note**: Make sure you have administrator rights on Azure AD before performing this operation.

It will provide you with the three keys required to connect to Tina:

* Application ID
* Directory ID
* Client secret value

### Register a new application

To register a new application, you must have a Microsoft Azure account.

1. Sign in at <https://portal.azure.com/>.
2. On the Microsoft Azure home page, select **Azure Active Directory**.
3. In the left-hand menu, click **App registrations**.
4. Click **New registration**. The application registration form is displayed on a new page (<mark style="color:$primary;">see Figure</mark>).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-a8a839b24f6a68b077353abd68c81a94b66d5c26%2Fimage%20(229).png?alt=media" alt=""><figcaption><p><strong>Image</strong>: Register an application interface</p></figcaption></figure>
5. Enter the application name in the input field.
6. Select **Accounts in this organizational directory only** as the supported account type.
7. Add a redirect URI (optional).
8. Click **Register** (see Figure).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-1217277f58ad75785c3fc04ea5ca8523c05cab28%2Fimage%20(230).png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-d36b5b3d941fb5e9503be1ac3883d231a7d29c49%2Fimage%20(232).png?alt=media" alt=""><figcaption><p><strong>Image</strong>: Application registration form</p></figcaption></figure>

The new application is created. Your application ID and directory ID are now available ([see Figure](https://docs.atempo.com/tina/4.9.4/en/tina-for-microsoft-365/Content/Topics_M365/Register_new_Application.htm?tocpath=Create%20a%20Microsoft%20Azure%20AD%20Application%7C_____1#The_Overview_application_ID_and_directory_ID)).

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-0dc60c201e19f45ebd9bc8d45324d94b803d9a67%2Fimage%20(233).png?alt=media" alt=""><figcaption><p><strong>Image</strong>: The overview lets you check the application ID and the directory ID</p></figcaption></figure>

### Create a client secret

After creating a new application, you must create a client secret to generate a value. This value is used as the application's password, allowing the application to prove its identity.

* In the **App registrations window**, select your application.
* In the left-hand menu, click **Certificates & secrets**.
* In the **Client secrets section**, click **New client secret** (see Figure).

  <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-617a4927d72fc97ffb488f66e63a3579482dad39%2Fimage%20(234).png?alt=media" alt=""><figcaption></figcaption></figure>
* In the window that opens, add a description of the secret and its expiration period.
* Click **Add** (see Figure).

  <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-cf00377f472aadd24ef2c3657a638835c526cc50%2Fimage%20(235).png?alt=media" alt=""><figcaption></figcaption></figure>

Once created, your client secret value is available. Copy this value and keep it for later. It will not be displayed again.

### Set API permissions

To complete the configuration of your application, you must grant your new application the required API permissions ([see Figure](https://docs.atempo.com/tina/4.9.4/en/tina-for-microsoft-365/Content/Topics_M365/Set_permission.htm?tocpath=Create%20a%20Microsoft%20Azure%20AD%20Application%7CSet%20API%20Permissions%7C_____0#Necessary_permissions_to_complete_configuration)). By default, you only have User.Read. This lets you sign in but not retrieve the list of users or email rights.

To set the API permissions, follow these steps:\
• Step 1: Add Azure Active Directory Graph permissions \ • Step 2: Add Microsoft Graph permissions \ • Step 3: Add Exchange permissions \ • Step 4: Grant consent

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-ca1351605b70c5df1b834ad74a6ddbd77a6c7f19%2Fimage%20(236).png?alt=media" alt=""><figcaption></figcaption></figure>

#### Step 1: Add Azure Active Directory Graph permissions

1. In **App registrations**, select your application.
2. Click **View API permissions** (Figure 25).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-c3b3ec6b64cc123b11f3bbde8e0fff8074cb60e9%2Fimage%20(237).png?alt=media" alt=""><figcaption><p><strong>Image</strong>: Permissions are set for each application</p></figcaption></figure>
3. Click **Add** a permission to display the Request API permissions pane (Figure 26).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-2bed1421b6e9b0a912bf59bac1ba0a48bdfe0a8b%2Fimage%20(238).png?alt=media" alt=""><figcaption><p><strong>Image</strong>: API permissions</p></figcaption></figure>

#### Step 2: Add Microsoft Graph permissions

1. In **App registrations**, select your application.
2. Click **View API permissions.**
3. Click **Add a permission** to display the **Request API permissions pane**.
4. In the **Commonly used Microsoft APIs** section, select **Microsoft Graph**.
5. Click the **Application permissions entry**.
6. Select all of the following permissions:
   * **Calendars** > `Calendars.Read`
   * **Calendars** > `Calendars.ReadWrite`
   * **ChannelMember** > `ChannelMember.ReadWrite.All`
   * **ChannelMessage** > `ChannelMessage.Read.All`
   * **ChannelSettings** > `ChannelSettings.ReadWrite.All`
   * **Contacts** > `Contacts.ReadWrite`
   * **Directory** > `Directory.Read.All`
   * **Files** > `Files.ReadWrite.All`
   * **Mail** > `Mail.Read`
   * **Mail** > `Mail.ReadWrite`
   * **Notes** > `Notes.ReadWrite.All`
   * **Sites** > `Sites.FullControl.All`
   * **Sites** > `Sites.Manage.All`
   * **Sites** > `Sites.ReadWrite.All`
   * **TeamMember** > `TeamMember.ReadWrite.All`
   * **TeamsAppInstallation** > `TeamsAppInstallation.ReadWriteForTeam.All`
   * **TeamSettings** > `TeamSettings.ReadWrite.All`
   * **TeamsTab** > `TeamsTab.ReadWrite.All`
   * **Teamwork** > `Teamwork.Migrate.All`
7. Click **Add permissions.**

#### Step 3: Add Exchange permissions

1. In **App registrations**, select your application.
2. Click **View API permissions.**
3. Click **Add a permission** to display the **Request API permissions pane**.
4. Click the **APIs my organization uses tab**.
5. Search for Office 365 Exchange Online and select the API from the list.
6. Click the **Application permissions entry**.
7. Go to the **Other permissions** permissions and select **full\_access\_as\_app.**
8. Go to the **Mail** mail permissions and select **Mail.ReadWrite.**
9. Go to the **User** permissions and select **User.ReadBasic.All.**
10. Click **Add permissions.**

#### Step 4: Grant consent

To complete the API permissions configuration, you must grant the permissions.

1. In **App registrations**, select your application.
2. Click **View API permissions.**
3. Click **Grant admin consent for** (Figure 27).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-f85302ae938b7edca9e432a767698cede6104eb7%2Fimage%20(239).png?alt=media" alt=""><figcaption><p><strong>Image</strong>: Grant consent</p></figcaption></figure>
4. Click **Yes** to confirm granting consent. A green button appears with the message Granted for (Figure 28).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-09674e96d7da126365b7481c56320e0d8a749abd%2Fimage%20(240).png?alt=media" alt=""><figcaption><p><strong>Image</strong>: In this example, all permissions are granted</p></figcaption></figure>
5. Fill out this Microsoft form to request access to protected APIs (you must click the request form link to open the form). Microsoft Teams APIs in Microsoft Graph that access sensitive data are considered protected APIs. These APIs require additional validation beyond permissions and consent before they can be used.

<mark style="color:blue;">Tina now automatically manages the renewal of Microsoft 365 tokens and secrets via</mark> <mark style="color:blue;">**Easy Setup**</mark><mark style="color:blue;">, preventing any interruption caused by their expiration. This improvement simplifies access management and ensures continuity of operations without manual intervention.</mark>

<mark style="color:blue;">A command now lets you automatically manage and renew Microsoft 365 tokens and secrets via</mark> <mark style="color:blue;">**Easy Setup.**</mark> <mark style="color:blue;">This feature ensures continuity of operations by preventing interruptions caused by credential expiration (TINA-14308).</mark>

## Back up Microsoft 365

To perform a backup, you must make a selection of files and directories to back up for a Microsoft 365 application. If you do not define a backup selection, no items will be backed up.

### Configure retention

Data retention is associated with the media set on which the data will be written. Media sets are created to manage media in a catalog. A media set is defined by a name, a label, the associated drives, and a management policy. Once created, the set can be associated with a backup strategy or an archiving folder to allow data to be written to cartridges. Cartridges will be automatically added to a set when needed.

It is recommended to keep automatic backups and archiving on separate sets, since the media used for automatic backups can be recycled and reused, whereas media used for archiving will most likely not be recycled.

A media set can also be used to assign certain drives to automatic backups and others to archiving. Most often, however, sets will have access to all available drives and Tina will decide which drive to use for a given backup, archiving, or restore.

**To create a media set**

1. Sign in to the Web Admin Console.
2. In the navigation pane, click the **Backup** tab.
3. Click the **Sets and cartridges tile.**
4. Click the **+ Add a new set button.** The set setup wizard is displayed.
5. Select the storage to associate with the media set. To add another storage to the media set, complete all steps then repeat the procedure. To perform synthetic full backups, associate at least two storage drives with the media set.

   > **Important**: It is strongly discouraged to associate storage drives from different libraries in the same media set.
6. Define the period Tina waits before recycling a full cartridge:
   1. a. **Infinite** Select this option if you do not want to recycle cartridges. This option is called storage policy. In this case, Tina does not reuse a cartridge once it is full.
   2. b. **Limited** Select this option if you want to recycle cartridges after a set period. This option is called recycling policy. Enter a numeric value and select a unit among day(s), week(s), month(s), and year(s).
7. Enter a name for the set. The set name can be linked to the set's use (e.g., "backup week for the weekly full backups").
8. Label the set, which will be displayed in the name of all cartridges belonging to the set. This is usually a short version of the set name.
9. (Optional) Enter a comment to describe the media set. The comment is saved in the Tina catalog. If you edit the comment, specify whether you want the new set comment to be applied to all existing cartridges in the set or only to new cartridges.
10. Click **Finish** to validate the creation of the media set.

### Define a backup selection

Tina is equipped with a wizard to define a backup selection for Microsoft 365. When creating a new selection, you can choose to back up:

* The Exchange Online component or selected paths.
* The OneDrive for Business component or selected paths.
* The Microsoft Teams component or selected paths.
* The SharePoint Online component or selected paths.
* The OneNote for Business component or selected paths.

> **Important**: The user defined in the catalog must be authorized to modify backup selections. Ask an administrator of the Web Admin Console to grant you the required right if needed.

**To grant a user the right to modify backup selections**

1. Sign in to the Web Admin Console as an administrator.
2. In the navigation pane, click the **Settings** tab.
3. Click the **Users and Groups** tile.
4. In the list of defined users, click the row of the user you want to grant the right to.
5. In the **Backup and Restore** section, select the **Backup selection (add, modify, or delete)** checkbox (Figure 1).
6. Click **Save**.

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-760f90949a4c40c5a1c237456583ac1ab5127577%2Fimage%20(241).png?alt=media" alt=""><figcaption><p><strong>Image</strong> : User profile options</p></figcaption></figure>

**To define a backup selection**

1. Sign in to the Web Admin Console.
2. In the navigation pane, click the **Agents** tab.
3. Click the row corresponding to your Microsoft 365 application. The **Application Details** window is displayed.
4. In the left-hand pane, click **Backup Selections.**
5. Under **Backup Selections**, click the **Add a new backup selection** button. The **Backup Selection Configuration** wizard is displayed (Figure 2).

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2Fgit-blob-6fe185770db6a598d766c383fe5ec488fd86fb89%2Fimage%20(144).png?alt=media" alt=""><figcaption></figcaption></figure>
6. Provide the backup selection information:

   1. Click **Browse agent** to display agents in a tree structure or Browse users to display a list of users.
   2. Enter the user name, domain name (Windows OS only), and password.
   3. Click **Connect**.
   4. Select the users to back up.
   5. Click **OK**. A path for each selected folder appears in the backup selection's list of paths.

   **Or**

   • Click **Add a path manually** and enter the path of the backup selection in the field that appears.
7. Under **Strategies**, select the strategies to manage the backup selection.
8. If needed, select the following options:
   1. **Parallelize the backup when possible**. This option allows several backups to be launched at the same time.
   2. Compress files.
9. If needed, enable the **Advanced Options** button and select the following options:
   1. Whether or not to encrypt data before writing to tape.
   2. Specify files to exclude from the backup selection.
   3. Specify files to include in the backup selection.
   4. Select the maximum size of files to back up.
   5. Select the maximum age of files to back up.
10. Click **Finish** to create the backup selection.

If you are deploying self-service restore, see the Configure self-service restore in your \ Microsoft 365 application section.

To optimize the backup window and avoid network bandwidth issues, it is recommended to roll out the backup of Microsoft 365 data gradually. Mailbox backups can be parallelized depending on the number of available drives. A mailbox backup uses one drive. Each mailbox is treated as an individual job, and in case of an error, only the affected mailbox will be restarted. In some cases, a full backup of the affected mailbox will be triggered.

### Strategies

For more information on how to add or configure a new strategy, see the Create a Strategy section of the Configure Tina chapter in the Tina Web Interface getting started documentation.

Full backups can take a long time. However, it is necessary to schedule incremental backups indefinitely after the initial full backup.

To create a full backup set for off-site purposes, the administrator must schedule a synthetic full backup. This type of backup is built from previous full and incremental backups. Instead of copying objects (files and directories) from disk, Tina finds the latest backed-up version of each object in the catalog to build the synthetic full backup. For each object, Tina takes into account the most recent version, regardless of strategy.

> **Example**: If a synthetic backup is run with strategy A, but the most recent file version was backed up incrementally using strategy B, the synthetic backup will use the version from strategy B.

Synthetic full backups are useful because they do not initiate any activity on the agents or the network, since all operations are performed on the server where the catalog resides.

Synthetic full backups do not reflect the actual state of the disk at the time they are run (e.g., files modified between the last backup taken into account and the synthetic session are not backed up). It is therefore recommended to schedule a synthetic backup right after an incremental session.

#### Prerequisites for a synthetic full backup

To perform synthetic backups, you must have at least two drives available, since a read and write session is involved.\
A synthetic backup takes into account the selected backup strategies (i.e., A, B, C, and D). If you do not want the synthetic backup to be built from the previous backups of all strategies, uncheck the box for the unwanted strategies.

## Environment Variables

The following list contains the optional environment variables available for the Microsoft 365 application (see Table 1)

**Table 1:** **Environment Variables**

<table><thead><tr><th width="184">Environment Variable</th><th width="290.3333740234375">Description</th><th width="108.666748046875">Data Type</th><th width="92.666748046875">Default Values</th></tr></thead><tbody><tr><td><strong>TINA_HIDE_USERS_WITHOUT_LICENCE</strong></td><td>Specifies whether users without a Microsoft license should be hidden in the tree.</td><td>ON|OFF</td><td>OFF</td></tr><tr><td><strong>TINA_O365_EXCLUDED_OFFICE_APPS</strong></td><td>Lets you specify the applications to hide from the tree and exclude from the backup. If its value contains a combination of Microsoft applications, you must separate them with the pipe character |. For example, if you set the value to <code>OneDrive&#x26;#124;Outlook</code>, neither the OneDrive nor Outlook branches will be visible. If the value is empty, all branches will be visible.</td><td><p>Outlook</p><p>Contacts</p><p>Calendar</p><p>OneDrive</p><p>OneNote</p><p>SharePoint</p><p>Teams</p><p>Users</p></td><td>(empty)</td></tr><tr><td><strong>TINA_O365_MAXDELTAMESSAGES</strong></td><td>When a folder backup is complete, the number of emails to be backed up is compared to the number of emails backed up. This verification step identifies the number of emails that may not have been backed up. When the number of emails not backed up exceeds the value set for this variable, a log file is generated. For example, if the value set for this variable is 2, Tina will generate a log file when 3 emails have not been backed up.</td><td>Integer</td><td>2</td></tr><tr><td><strong>TINA_O365_USE_DELTALINKS</strong></td><td>Delta links track changes that have occurred to content activity since the last synchronization (e.g., content added or deleted). This allows for efficient incremental updates, since these links do not retrieve all the data. Delta links are enabled by default. It is recommended to keep them enabled to optimize Microsoft 365 backup loads. However, you can disable them if needed by creating a custom environment variable.</td><td>YES|NO</td><td>YES</td></tr><tr><td><strong>TINA_O365_ONEDRIVE_FILE_MAXSIZE</strong></td><td>Specifies the maximum size of files to back up (OneDrive, Teams, and SharePoint files) in GB. The default value sets no size limit for backed-up files.</td><td>Decimal</td><td>0.0</td></tr><tr><td><strong>TINA_O365_PAGESIZE</strong></td><td>Sets a maximum number of objects to retrieve per request. An object can be a file or an email, for example. <strong>Note:</strong> This variable will no longer apply to notebooks, sections, or section groups.</td><td>Integer</td><td>100</td></tr><tr><td><strong>TINA_O365_SECUREDELAY</strong></td><td>Applies a delay, in seconds, before the token expires.</td><td>Integer</td><td>60</td></tr><tr><td><strong>TINA_O365_USERNAME_EMAIL_SUFFIX</strong></td><td>Specifies whether user names are followed by their email address when a list of users is displayed in the Web Admin Console.</td><td>YES|NO</td><td>NO</td></tr><tr><td><strong>TINA_O365_CURL_NODATA_TIMEOUT</strong></td><td>Applies a timeout, in seconds, for receiving data during cURL requests.</td><td>Integer</td><td>10</td></tr><tr><td><strong>TINA_O365_CURL_REQUEST_TIMEOUT</strong></td><td>Applies a timeout, in seconds, for the duration of cURL requests.</td><td>Integer</td><td>900</td></tr><tr><td><strong>TINA_O365_BATCHING_LEVEL</strong></td><td>Applies a number of sub-requests making up a batch request. You can set this value from 1 to 20.</td><td>Integer</td><td>20</td></tr><tr><td><strong>TINA_O365_USERS_GROUP_FILTER</strong></td><td>Applies regular expressions that filter user groups. If this variable is not set, users are not filtered and you can see users from all groups.</td><td>String</td><td>(empty)</td></tr><tr><td><strong>TINA_O365_USERS_DISPLAYNAME_FILTER</strong></td><td>Applies regular expressions that filter users by their name. If this variable is not set, users are not filtered and you can see all users in a group.</td><td>String</td><td>(empty)</td></tr><tr><td><strong>TINA_O365_MAX_RETRIES</strong></td><td>Specifies the maximum number of retries launched by Tina when a request error occurs (e.g., backing up or retrieving emails).</td><td>Integer</td><td>8</td></tr><tr><td><strong>TINA_O365_HIDE_ARCHIVE_MAILBOXES</strong></td><td>Specifies whether archive mailboxes are backed up or not. By default, archive mailboxes are not backed up.</td><td>YES|NO</td><td>YES</td></tr><tr><td><strong>TINA_TRUSTED_AUTHENTICATION_MODE</strong></td><td>The agent system credentials associated with your application agent are required for any restore. This variable automatically uses these credentials so that you can authenticate automatically for any restore, provided the credentials have been saved in the application agent's record. To save your credentials for future restores on an existing application agent: 1. In the list of agents, open the Microsoft 365 application agent. 2. In the application settings section, make sure a user name and password have been provided. 3. In the optional environment variables section, select the <code>TINA_TRUSTED_AUTHENTICATION_MODE</code> variable then set its value to YES.</td><td>YES|NO</td><td>NO</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/administration-guide/backup/microsoft-365.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
