In this article, we will explore the concept of the maximum age for Microsoft Teams messages in an Office 365 tenant. Specifically, we will examine the policy for automatically transferring the oldest messages to Teams, which is set to 90 days by default.
Understanding Maximum Age for Microsoft Teams Messages
In Microsoft Teams, messages are stored and managed in the Office 365 tenant. This means that all data associated with Microsoft Teams, including messages and files, are stored in the Office 365 tenant. The tenant administrator can set a policy for automatically transferring the oldest messages to Teams, which helps to manage the storage space and improve the performance of the system.
What is the Maximum Age for Microsoft Teams Messages?
The maximum age for Microsoft Teams messages is the time period after which the oldest messages are automatically transferred to Teams. This time period is set by the tenant administrator, and the default value is 90 days. This means that after 90 days, the oldest messages are moved to Teams, and they are no longer accessible in the original chat.
Why is the Maximum Age for Microsoft Teams Messages Important?
The maximum age for Microsoft Teams messages is important because it helps to manage the storage space in the Office 365 tenant. If the tenant administrator does not set a policy for automatically transferring the oldest messages to Teams, the storage space can quickly become filled up with old messages. This can negatively impact the performance of the system and make it difficult to find new messages or files.
How to set the Maximum Age for Microsoft Teams Messages
To set the maximum age for Microsoft Teams messages, the tenant administrator can follow these steps:
- Log in to the Office 365 tenant as an administrator
- Go to the Microsoft Teams admin center
- Select the "Org-wide settings" option
- Select the "Messaging policies" option
- Select the policy that you want to modify
- Under the "Chat" section, set the "Maximum age of messages" option to the desired value (e.g. 90 days)
- Click "Save" to apply the changes
Code Sample
Here is an example of how to set the maximum age for Microsoft Teams messages using the Microsoft Graph API:
PUT /admin/teams/policies/\/messaging
{
"chat": {
"maxAgeOfMessages": "PT90D"
}
}
References
- Microsoft Graph API: https://docs.microsoft.com/en-us/graph/api/policy-put-messaging?view=graph-rest-1.0&tabs=http
- Microsoft Teams admin center: https://admin.teams.microsoft.com/