So I'm using tutorial from here : https://technet.microsoft.com/en-us/library/fp161372.aspx
But when I tried to connect, there is an error as above. I have set my credential as global administrator. I also checked on my O365 admin -> user, my account registered as global administrator. So why am I still unauthorized to access my SPO using SPO Management Shell?
Below are my code based on tutorial from msdn
$adminUPN="[email protected]" $orgName="my365trial" $userCredential = Get-Credential -UserName $adminUPN -Message "Type the password." Connect-SPOService -Url http://$orgName-admin.sharepoint.com -Credential $userCredential