---
title: "CAA50021 Error Code: 5 Ways to Fix it in Teams or Outlook"
description: "## How do I fix Microsoft error code CAA50021? ![](https://www.sle.gg/wp-content/uploads/2025/03/image-10.png) Many have encountered CAA50021 error while trying to use various Microsoft services, so today we’re going to take a closer look at this error and show you how to fix…"
url: "https://www.sle.gg/docs/caa50021-error-code-5-ways-to-fix-it-in-teams-or-outlook/"
updated: "2026-08-19"
category: Microsoft 365
---

# CAA50021 Error Code: 5 Ways to Fix it in Teams or Outlook

## How do I fix Microsoft error code CAA50021?

![](https://www.sle.gg/wp-content/uploads/2025/03/image-10.png)

Many have encountered CAA50021 error while trying to use various Microsoft services, so today we’re going to take a closer look at this error and show you how to fix it.

## Step 1: Link your device to a work/school account again

Hit the `Windows` key and select **Settings**.

![](https://www.sle.gg/wp-content/uploads/2025/03/image-11.png)

Select *Accounts* on the left pane and tap on **Access work or school **on the right pane.

![](https://www.sle.gg/wp-content/uploads/2025/03/image-12-1024x641.png)

If you have work or school account connected, **disconnect **it.

Click on *Connect* next to **Add a work or school account**.

![](https://www.sle.gg/wp-content/uploads/2025/03/image-13-1024x641.png)

Now follow the on-screen prompts to connect your device with *Azure*.

A few users also suggested deleting your device from the Azure Admin Center, so try that as well.

## Step 2: Re-register your device with Azure

Hit the `Windows` key, type** cmd** in the search bar, and click *Run as administrator*.

![](https://www.sle.gg/wp-content/uploads/2025/03/image-14.png)

Type and `Enter` the following command:

**dsregcmd /leave**

![](https://www.sle.gg/wp-content/uploads/2025/03/image-15.png)

Navigate to the following location and delete the **MS-Organization-Access** and *MS-Organization-P2P-Access *entries:

**Current User\\Personal\\Certificates**

Go back to the *Command Prompt* window and type the following command:

**dsregcmd /status**

The **AzureAdJoined** status should read *No*.

Go back hit the `Windows` key, type *Task Scheduler* in the search bar, and click **Open**.

![](https://www.sle.gg/wp-content/uploads/2025/03/image-16.png)

Navigate to the *Task Scheduler Library* and select **Microsoft**.

![](https://www.sle.gg/wp-content/uploads/2025/03/image-17.png)

Select the *Windows* option and tap on **Workplace Join** under it.

![](https://www.sle.gg/wp-content/uploads/2025/03/image-18.png)

Launch the *Automatic-Device-Join* task by right-clicking on it and select **Enable**.

![](https://www.sle.gg/wp-content/uploads/2025/03/image-19.png)

## Step 3: Change CA policy settings

Open the CA policy settings.

Next, exclude the following from **All cloud apps**:

- Microsoft Command Service
- Microsoft Activity Feed Service
- Microsoft Directory Device Service

Save changes.

## Step 4: Change Azure settings

Go to Azure AD Admin Center and choose Devices. Next, select Devices.

Enable the **Users may register their devices with Azure AD.**

![](https://www.sle.gg/wp-content/uploads/2025/03/image-20.png)

Save changes and try again.

Alternatively, select **This app only** when launching the app if you don’t want to register with Azure.

## Step 5: Reinstall Office

Remove your email account from Outlook settings.

Next, press the `Windows` key + `X` and choose **Installed apps**.

![](https://www.sle.gg/wp-content/uploads/2025/03/image-21.png)

Locate Office on the list, click the three dots next to it, and choose **Modify**.

![](https://www.sle.gg/wp-content/uploads/2025/03/image-22-1024x801.png)

Follow the steps to reinstall it.

Open **Outlook** again and connect to **Exchange**.

This is a drastic solution, but it can help with caa50021 error in Outlook.
