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

Get-SPOUser : Cannot bind parameter 'Site'. Cannot convert value "" to type
"Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind". Error: "SpoSitePipeBind Url"
At line:1 char:13
+ Get-SPOUser
+             ~~~~~~~~~~~~~~~~~~~~~~~~
+ 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="" data-mce-href=""></a> -LoginName | fl

DisplayName : Admin
LoginName&nbsp;&nbsp; :
IsSiteAdmin : False
IsGroup&nbsp;&nbsp;&nbsp;&nbsp; : False
Groups&nbsp;&nbsp;&nbsp;&nbsp; : {}
UserType&nbsp; : Member
0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x