If you’re running into the error Get-SPOUser : Cannot bind parameter ‘Site’, you probably have used wrong values in your cmdlet. In my example below I show you the error I get when I run Get-SPOUser admin@itexperience.net
Get-SPOUser admin@itexperience.net Get-SPOUser : Cannot bind parameter 'Site'. Cannot convert value "admin@itexperience.net" to type "Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind". Error: "SpoSitePipeBind Url" At line:1 char:13 + Get-SPOUser admin@itexperience.net + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Get-SPOUser], ParameterBindingException + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Online.SharePoint.PowerShell.GetSPOUser
So, what’s wrong with this simple cmdlet?
First of all, the default parameter is Site. If you don’t specify the parameter in your cmdlet, Get-SPOUser will treat your first value as site value.
Second, if you want to return only one user, you should also specify LoginName.
The following command will return the expected result
Get-SPOUser -Site <a href="https://itexperience-my.sharepoint.com/" data-mce-href="https://itexperience-my.sharepoint.com/">https://itexperience-my.sharepoint.com</a> -LoginName admin@itexperience.net | fl DisplayName : Admin LoginName : admin@itexperience.net IsSiteAdmin : False IsGroup : False Groups : {} UserType : Member