Guest users
3 TopicsGet-SPOExternalUser cmdlet throws unknown error
Hi all I am trying to do a report of external user on per-site collection basis. Get-SPOExternaluser cmdlet is working with some site collections in the tenant. But for some other site collections, I get the following unknown error. The external users exist in those site collections. Does anyone have insights into this? Get-SPOExternalUser : Unknown Error At line:1 char:1 + Get-SPOExternalUser -SiteUrl https://tenant.sharepoint.com/teams/O ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Get-SPOExternalUser], ServerException + FullyQualifiedErrorId : Unknown Error,Microsoft.Online.SharePoint.PowerShell.GetSPOExternalUser2.4KViews0likes2CommentsGet-spoexternalUser has Null value for InvitedBy
Hi all Get-spoexternaluser does not always show data of InvitedBy. Sometimes I see the person who invited and sometimes it is null. Does anyone know why? Also the command Get-Spoexternaluser itself does not return anything when I use it with -Filter option or -site Url option to get a list of external users in a site collection. The cmdlet seems very buggy. At tenant level it returns all external users but the url filters are not working properly. I can use Azure AD commands to get external user info, but they don't give any information regarding SP sites. Is there a c# equivalent for Get-SPOExternalUser cmdlet? TIA1.1KViews0likes0CommentsWhat is the difference between Remove-msoluser and Remove-SPOExternalUser
Hi all I doing some clean up of external users in my tenant and deleting stale guest users. There are 2 cmdlets that can be used to delete Guest users: remove-spoexternaluser and remove-msoluser. I understand remove-msoluser can be used to delete both tenant users and external users also. But when it comes to guest users, are they both same? It looks like both can be used to delete external user from Azure AD. And both cmdlets don't delete the external user id from user info list in SharePoint. Is there a preference of one over other?2.8KViews0likes1Comment