Microsoft Teams Archive [Template]

Overview

Microsoft Teams provides the ability to archive, but with the following caveats

  • Archived teams and their contents will continue to be available within Teams search

  • Archived teams will continue to use up storage space on the tenant

  • Archiving a channel isn’t available and there are limits on the number of channels allowed per team

By using the Voleer Microsoft Teams Archive template, posts/replies and files for team(s) and channel(s) can be archived onto the Voleer workspace. Once done, the team/channel can be deleted from Microsoft Teams freeing up space and reducing quotas towards limits.

How it works

This template extracts data from user selected teams and channels and generates

  • Viewable/searchable HTML files containing posts/replies for each channel

  • Compressed zip archives of all files

  • Directory of files against zip archives for ease of extraction of individual files when needed

Requirements

To configure this template for end-users to run, you will require

  • A Microsoft 365 account with Global Administrator permissions to provision read/write and full control access to the Voleer application. This access will allow the Voleer application the ability to create a service account to execute the steps required to extract data from Microsoft Teams

  • A Microsoft Teams enabled license to allocate to the service account

Once configured, end-users can run the template with their standard Microsoft credentials.

Getting started

To start using this template, perform the following:

  1. Sign in to your Voleer account or sign up for a new account

  2. On the Library page, find and select template Microsoft Teams Archive

  3. Read the Requirements and configure your account and tenant as stated

  4. Once configured, along the right hand side, select a Workspace, then click on Launch
    image

  5. There are 2 stages to authorizing Voleer. The first stage is to authorize Voleer with a Global Administrator account. If you have done this before, jump to step 8, otherwise, 1) copy the code, 2) Visit the link https://microsoft.com/devicecode and complete the authentication process, and then 3) Click on the Validate button
    Note - if the authorization code has expired, click on the Validate button to get a new one

  6. You will need to repeat the authorization process again by clicking on the Authorization link and completing the authentication process

  7. The final step in authorizing Voleer with a Global Administrator account is to create a service account. Complete the form fields Display Name, Username, Password, Usage Location, and License for Voleer to create a service account on your behalf. Finalize the step by clicking on Validate.

  8. The second stage of authorizing Voleer is with an Microsoft 365 account which has owner access to Team that will be archived. To do this 1) copy the code, 2) Visit the link https://microsoft.com/devicecode and complete the authentication process, and then 3) Click on the Validate button
    Note - if the authorization code has expired, click on the Validate button to get a new one

  9. Complete the configuration by selecting a team/channel and the email address for the notification. Note - Voleer will add the service account create in step 7 to the selected Team. It may take several attempts to complete this action.

  10. Once Voleer has added the service account to the selected teams, confirm the configuration and then click on Procced with Archive.
    Note - If any of the selections are incorrect, cancel the run to start again.

  11. Once completed, an email will be sent to the notification recipient with a link to the archived team/channel.

Have an issue?

Post a comment in this article and someone will get back to you as soon as possible

Hi Lawrence (or anyone that can help :))

I’m having problems with step 7.

Validation logs say:
2022-05-10T13:24:38Z [Warning] Exception occurred while invoking REST call.
The remote server returned an error: (401) Unauthorized.
{“error”:“invalid_client”,“error_description”:“AADSTS7000222: The provided client secret keys for app ‘dff08eff-81c8-4274-bd4d-47d4440eadec’ are expired. Visit the Azure portal to create new keys for your app: […], or consider using certificate credentials for added security: […] : 32608ed6-ce45-4534-b953-c69d419e6e00\r\nCorrelation ID: ea94e19d-0016-4ad0-87ea-253599d39f25\r\nTimestamp: 2022-05-10 13:24:38Z”,“error_codes”:[7000222],“timestamp”:“2022-05-10 13:24:38Z”,“trace_id”:“32608ed6-ce45-4534-b953-c69d419e6e00”,“correlation_id”:“ea94e19d-0016-4ad0-87ea-253599d39f25”,“error_uri”:“https://login.microsoftonline.com/error?code=7000222”}
2022-05-10T13:24:38Z [Warning] An error occurred while retrieving Microsoft 365 Access Token. Please make sure that you have completed the authorization.
2022-05-10T13:24:38Z [Information] Creating validation message: ‘An error occurred while retrieving Microsoft 365 Access Token. Please make sure that you have completed the authorization.’
2022-05-10T13:24:38Z [Error] : The validation was unsuccessful.

Are you able to help?