When running a Prepare job for a Teams migration, an error is generated indicating the BinaryTreePowershellCDS account is not authorized. I have confirmed both of the BinaryTreeCDS accounts are assigned Teams, Exchange and User Admin roles in the Office 365 tenant.
The following error is generated when attempting the Prepare task:
Read: Error executing Get-Team -GroupId "" for
BinaryTreeCDSPowerShell.333b4fbfbc7c44808d9a6ef8e57d8767@tenant.onmicrosoft.comSystem.Exception: Error executing Get-Team -GroupId "" for
BinaryTreeCDSPowerShell.333b4fbfbc7c44808d9a6ef8e57d8767@tenant.onmicrosoft.com ---> System.Management.Automation.CmdletInvocationException: Unauthorized in /groups/ endpoint --->
System.Net.Http.HttpRequestException: Unauthorized in /groups/ endpoint
at Microsoft.TeamsCmdlets.PowerShell.Custom.TeamsCmdlet.GetTeamWithGroupAttributes(String cmdletName, String groupId)
It should be noted, the error generated in T2T is similar to an error generated when running a read workflow again the Office 365 tenants in Power365 DS. Here is an example of an error from the recent read operation in the DS workflow:
System.Exception: Error executing Get-Team -GroupId "" for
BinaryTreeCDSPowerShell.333b4fbfbc7c44808d9a6ef8e57d8767@tenant.onmicrosoft.com ---> System.Management.Automation.CmdletInvocationException: Unauthorized in /groups/ endpoint --->
System.Net.Http.HttpRequestException: Unauthorized in /groups/ endpoint
at Microsoft.TeamsCmdlets.PowerShell.Custom.TeamsCmdlet.GetTeamWithGroupAttributes(String cmdletName, String groupId)
at Microsoft.TeamsCmdlets.PowerShell.Custom.GetTeam.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()....