After running the script, the user should be visible as an owner of the group from the Office Admin portal or the Azure portal. However, per Microsoft, these permission changes may take minutes or hours for the ownership to take effect in Teams. This script should be run at least 24 hours before the migration is attempted again.

If the user does not show as an owner after 24 hours, try one of the options below:

Manual options:

Ask a current owner of the team to add the user as an owner from the Teams UI. This should take effect immediately.

In the Office Admin portal or Azure portal, remove the user from the owner of the group and add it back again. This change may still require up to 24 hours to take effect.

PowerShell Option:

The owner can be removed and re-added using the PowerShell script below: $groupId = '' $username = '' Remove-TeamUser -GroupId $groupId -User $username -Role Owner Add-TeamUser -GroupId $groupId -User $username -Role OwnerNote: This remove and re-add can still require up to 24 hours to take effect.