To add O365 users to MS Teams, it is essential to configure Office 365 Settings and also MS Teams Settings. To know more about the pre-requisites, and know how to add Office 365 accounts in ADManager Plus, refer to this article.
This help document will walk you through the pre-requisites for MS Teams and how to install them.
Ensure that the following pre-requisites are satisfied before setting out to perform MS Teams operations in ADManager Plus:
Step 1: If you're using PowerShell 5.1, you must update the PowerShellGet module beforehand. Run the cmdlet Install-Module PowerShellGet -Force -AllowClobber in elevated PowerShell to update PowerShellGet.
Step 3: After you update PowerShellGet, close and reopen an elevated PowerShell session to ensure that the latest PowerShellGet is loaded.
Step 4: Finally, run this cmdlet to install the module: Install-Module MicrosoftTeams -AllowPrerelease -AllowClobber -RequiredVersion "2.4.1-preview"
Once the installation of Teams PowerShell module is successful, you can go ahead and add Office 365 users to MS Teams via ADManager Plus.
For more information, please refer the below page: