Get-SPOUser : Cannot bind parameter ‘Site’. Cannot convert value

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

Get-SPOUser Cannot bind parameter Site

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&nbsp;&nbsp; : admin@itexperience.net
IsSiteAdmin : False
IsGroup&nbsp;&nbsp;&nbsp;&nbsp; : False
Groups&nbsp;&nbsp;&nbsp;&nbsp; : {}
UserType&nbsp; : Member
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x