Microsoft Team is a helpful collaboration app that enables you to chat with friends, join a meeting, share files online, etc. However, sometimes when you try to sign into this app, you are likely to encounter the error code CAA50021.

To fix the Microsoft error code CAA50021, this post from NewsPivot summarizes several possible solutions. If you get stuck in the same error, you can try them for a repair.

Way 1: Re-register Your PC with Azure AD

The CAA50021 error code may randomly happen due to the expired registration to Azure. As for this, you can try registering your PC with Azure to fix it. To do this, follow the steps below.

You can apply this method only when you log in with an administrator account.

Step 1: Search for Command Prompt in the search bar and then open the app in Best match.

Step 2: Once you enter Command Prompt, type dsregcmd /leave and press Enter.

Step 3: Type Manage user certificates in the search bar and then press Enter.

Step 4: After that, navigate to the path: Current User\Personal\Certificates. Then delete the MS-Organization-Access and MS-Organization-P2P-Access entries.

Step 5: Go back to Command Prompt and run the dsregcmd /status command. Note that AzureAdJoined should currently be set to NO.

run a specific command

Step 6: Open Task Scheduler by searching for it in the search bar and press Enter.

Step 7: Navigate to Task Scheduler Library > Microsoft > Windows > Workplace join. Then right-click Automatic-Device-Join in the middle section and select Enable.

re-register your device with Azure

You can also try to fix the Microsoft error code CAA50021 by linking your computer to a work or school account. Here’s how to do this.

Step 1: Press Windows + I to open Windows Settings. Then select Accounts.

Step 2: Go to Access work or school and then click Connect in the right panel.

Step 3: After that, follow the given instructions to complete linking your device to Azure. 

Way 3: Temporarily Disable the Antivirus

The third-party antivirus programs and Windows Defender Firewall on your computer may randomly interfere with the Microsoft Teams login, causing the error CAA50021. To avoid this error, you’d better temporarily disable the antivirus.

Keep in mind that viruses or malware may attack your system with the antivirus disabled. So, you need to re-enable these programs after you solve the error.

Way 4: Delete Microsoft Teams Credentials

Deleting your Microsoft Teams credentials may assist in fixing the CAA50021 error code as well. The following are detailed steps.

Step 1: Press Windows + R to open the Run dialog.

Step 2: Type control.exe in the text box and press Enter to open Control Panel.

Step 3: Go to User Accounts > Manage Windows Credentials.

Step 4: After that, find and locate the credentials related to Microsoft Teams. Then click Remove to delete them.

Step 5: Once done, restart your computer to see if the error is resolved.

Way 5: Update Microsoft Teams

Another way you can try to solve the Microsoft error code CAA50021 is to update the Teams app. To do this, you need to click the three-dot icon at the top-right corner and select Check for updates.

When you are facing the error code CAA50021 in Microsoft Teams, try to fix it with the above methods. Hope you can successfully solve your issue.

  • linkedin
  • reddit