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

Re-register your Azure credentials to get rid of the error

Reading time icon 3 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

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.

How do I fix Microsoft error code CAA50021?

  1. Hit the Windows key and select Settings.settings windows 11
  2. Select Accounts on the left pane and tap on Access work or school on the right pane.
  3. If you have work or school account connected, disconnect it.
  4. Click on Connect next to Add a work or school account.
  5. 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.

2. Re-register your device with Azure

  1. Hit the Windows key, type cmd in the search bar, and click Run as administrator.
  2. Type and Enter the following command: dsregcmd /leave 
  3. Navigate to the following location and delete the MS-Organization-Access and MS-Organization-P2P-Access entries: Current User\Personal\Certificates
  4. Go back to the Command Prompt window and type the following command: dsregcmd /status
  5. The AzureAdJoined status should read No.
  6. Go back hit the Windows key, type Task Scheduler in the search bar, and click Open.
  7. Navigate to the Task Scheduler Library and select Microsoft.
  8. Select the Windows option and tap on Workplace Join under it.
  9. Launch the Automatic-Device-Join task by right-clicking on it and select Enable.

3. Change CA policy settings

  1. Open the CA policy settings.
  2. Next, exclude the following from All cloud apps:
    • Microsoft Command Service
    • Microsoft Activity Feed Service
    • Microsoft Directory Device Service
  3. Save changes.

4. Change Azure settings

  1. Go to Azure AD Admin Center and choose Devices. Next, select Devices.
  2. Enable the Users may register their devices with Azure AD.
    users may register their device
  3. Save changes and try again.
  4. Alternatively, select This app only when launching the app if you don’t want to register with Azure.

5. Reinstall Office

  1. Remove your email account from Outlook settings.
  2. Next, press the Windows key + X and choose Installed apps.
    installed apps windows 11
  3. Locate Office on the list, click the three dots next to it, and choose Modify.
    disable onenote startup
  4. Follow the steps to reinstall it.
  5. Open Outlook again and connect to Exchange.

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

You may also come across an issue where Microsoft Teams status is stuck on updating so be sure to check out our helpful guide on how to proceed.

If you’d like to try out other collaboration software, especially for small-sized businesses, we have a couple that we can recommend.

Keep in mind that caa50021 can appear in Intune, OneDrive, Teams, and other Microsoft services, but these solutions should help regardless of the service that is giving you the error.

Let us know if you have been able to solve this error in the comment section below.

More about the topics: Microsoft Office

User forum

4 messages