SOLVED

Guest users are not showing in document library

%3CLINGO-SUB%20id%3D%22lingo-sub-252272%22%20slang%3D%22en-US%22%3ERe%3A%20Guest%20users%20are%20not%20showing%20in%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-252272%22%20slang%3D%22en-US%22%3EI%E2%80%99m%20pretty%20sure%20that%20it%20is%20not%20for%20two%20reasons.%20First%2C%20I%20do%20all%20of%20this%20administrative%20work%20in%20and%20in%20private%20browser.%20Second%2C%20these%20are%20email%20addresses%20that%20I%20have%20never%20seen%20before%20or%20emailed%20before.%20They%20are%20a%20list%20of%20users%20sent%20in%20from%20a%20client%20partner%20company.%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20a%20sidenote%2C%20what%20I%20have%20started%20doing%20is%20inviting%20all%20users%20to%20AzureAD%20using%20powershell%20and%20then%20adding%20those%20invited%20users%20to%20sharepoint%20groups%20that%20have%20already%20been%20added%20to%20the%20document%20library%2C%20also%20via%20powershell.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-252102%22%20slang%3D%22en-US%22%3ERe%3A%20Guest%20users%20are%20not%20showing%20in%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-252102%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20probably%20from%20the%20cache%20of%20browser%20or%20outlook%20contact%20cache.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-137043%22%20slang%3D%22en-US%22%3ERe%3A%20Guest%20users%20are%20not%20showing%20in%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-137043%22%20slang%3D%22en-US%22%3E%3CP%3EI%20never%20did%20find%20the%26nbsp%3BShowPeoplePickerSuggestionsForGuestUsers%20feature%20on%20either%20commandlet.%20I%20did%20get%20it%20working%20this%20way%2C%20though%20I%20really%20don't%20understand%20why.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EUser%20created%20via%20Azure%20AD%20%3CSTRONG%3ENew%20guest%20user%3C%2FSTRONG%3E%20feature%3C%2FLI%3E%0A%3CLI%3EGoto%20SPO%20and%20click%20Share%20(or%20add%20to%20a%20user%20group%20in%20SPO)%3C%2FLI%3E%0A%3CLI%3EEnter%20the%20users%20email%20address%2C%20same%20as%20the%20one%20used%20in%20step%201.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EThis%20works.%20After%20I%20did%20this%2C%20I%20also%20was%20able%20to%20find%20the%20user%20via%20their%20display%20name%20in%20the%20people%20picker.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-135536%22%20slang%3D%22en-US%22%3ERe%3A%20Guest%20users%20are%20not%20showing%20in%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-135536%22%20slang%3D%22en-US%22%3EI%20cannot%20find%20this%20setting%20in%20either%20set-spotenant%20or%20set-sposite.%20Is%20it%20enabled%20elsewhere%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-108361%22%20slang%3D%22en-US%22%3ERe%3A%20Guest%20users%20are%20not%20showing%20in%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-108361%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20fact%20-%20the%20site%20does%20not%20have%20this%20property%20-%20do%20you%20need%20to%20set%20at%20tenant%20first%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-108348%22%20slang%3D%22en-US%22%3ERe%3A%20Guest%20users%20are%20not%20showing%20in%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-108348%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20-%20picking%20up%20on%20this%20for%20my%20need%20-%20I%20am%20not%20sure%20if%20I%20am%20going%20mad%20-%20running%20the%20below%20is%20not%20working%2C%20should%20it%20be%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESet-SPOSite%20-Identity%20%3CA%20href%3D%22https%3A%2F%2Fdomain.sharepoint.com%2Fsites%2Ftestsite%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdomain.sharepoint.com%2Fsites%2Ftestsite%3C%2FA%3E%20-ShowPeoplePickerSuggestionsForGuestUsers%20%24true%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-61012%22%20slang%3D%22en-US%22%3ERe%3A%20Guest%20users%20are%20not%20showing%20in%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-61012%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Sarat%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20the%20answer%20and%20sorry%20for%20the%20late%20response.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20works!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20specify%20that%20all%20new%20sites%20that%20are%20created%20should%20have%20ShowPeoplePickerSuggestionsForGuestUsers%20set%20to%20True%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EJakob%20Rohde%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-59681%22%20slang%3D%22en-US%22%3ERe%3A%20Guest%20users%20are%20not%20showing%20in%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-59681%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Jakob%20-%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%26nbsp%3Bthis%20doc%20%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Factive-directory-b2b-faq%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-dire%3CWBR%20%2F%3Ectory%2Factive-directory-b2b-faq%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESee%20the%20question%20about%20SPO%20people%20picker%3A%3C%2FP%3E%0A%3CP%20lang%3D%22en-us%22%3E%3CEM%3EAre%20B2B%20collaboration%20guest%20users%20visible%20in%20SharePoint%20Online%2FOneDrive%20people%20picker%3F%3C%2FEM%3E%3C%2FP%3E%0A%3CP%20lang%3D%22en-us%22%3E%3CEM%3EYes!%20However%2C%20the%20ability%20to%20search%20for%20existing%20guest%20users%20in%20the%20SharePoint%20Online%20people%20picker%20is%20OFF%20by%20default%20to%20match%20legacy%20behavior.%20You%20can%20enable%20this%20using%20the%20setting%20'ShowPeoplePickerSuggestionsForGuestUsers'%20at%20the%20tenant%20and%20site%20collection%20level.%20This%20can%20be%20set%20using%20the%20Set-SPOTenant%20and%20Set-SPOSite%20cmdlets%2C%20which%20allow%20members%20to%20search%20all%20existing%20guest%20users%20in%20the%20directory.%20Changes%20in%20the%20tenant%20scope%20do%20not%20affect%20already%20provisioned%20SharePoint%20Online%20sites.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%26nbsp%3Brun%20the%20above%20mentioned%20cmdlets%20to%20see%20the%20added%20users%20in%20the%20picker%20and%20let%20us%20know%20if%20that%20worked%20for%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-49057%22%20slang%3D%22en-US%22%3ERe%3A%20Guest%20users%20are%20not%20showing%20in%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-49057%22%20slang%3D%22en-US%22%3E%3CP%3EYes%20-%20as%20I%20wrote%2C%20the%20same%20users%20are%20working%20ok%2C%20when%20added%20via%20a%20group.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-48958%22%20slang%3D%22en-US%22%3ERe%3A%20Guest%20users%20are%20not%20showing%20in%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-48958%22%20slang%3D%22en-US%22%3EAre%20you%20picking%20the%20users%20from%20the%20B2B%20users%20already%20invited%20through%20Azure%20AD%20B2B%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-47665%22%20slang%3D%22en-US%22%3EGuest%20users%20are%20not%20showing%20in%20document%20library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-47665%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20I%26nbsp%3Bgrant%20guest%20users%20rights%20directly%20to%20a%20SPO%20document%20library%20(after%20having%20disabled%20inheritance)%2C%20the%20users%26nbsp%3Bwill%20have%20the%20expected%20rights%2C%20but%20they%20will%20not%26nbsp%3Bshow%20up%20in%20the%20list%20of%20users%2Fgroups%20with%20access%20to%20the%20library.%20This%20is%20of%20course%20a%20security%20problem%2C%26nbsp%3Bbecause%20you%20can't%20see%20(easily)%20who%20have%20access%2C%20but%20it%20also%20means%20that%20you%20can't%20remove%20or%20edit%20the%20user%20(in%20the%20GUI).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20put%20the%20same%20users%20in%20a%20group%2C%20it%20works%20as%20expected.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20you%26nbsp%3Bseing%20the%20same%20thing%3F%20%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-47665%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EB2B%20collaboration%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Frequent Contributor

If I grant guest users rights directly to a SPO document library (after having disabled inheritance), the users will have the expected rights, but they will not show up in the list of users/groups with access to the library. This is of course a security problem, because you can't see (easily) who have access, but it also means that you can't remove or edit the user (in the GUI).

 

If I put the same users in a group, it works as expected.

 

Are you seing the same thing?   

10 Replies
Highlighted
Are you picking the users from the B2B users already invited through Azure AD B2B?
Highlighted

Yes - as I wrote, the same users are working ok, when added via a group.

Highlighted
Best Response confirmed by Daniel Martins (Microsoft)
Solution

Hello Jakob - 

 

Please refer to this doc  https://docs.microsoft.com/en-us/azure/active-directory/active-directory-b2b-faq.

 

See the question about SPO people picker:

Are B2B collaboration guest users visible in SharePoint Online/OneDrive people picker?

Yes! However, the ability to search for existing guest users in the SharePoint Online people picker is OFF by default to match legacy behavior. You can enable this using the setting 'ShowPeoplePickerSuggestionsForGuestUsers' at the tenant and site collection level. This can be set using the Set-SPOTenant and Set-SPOSite cmdlets, which allow members to search all existing guest users in the directory. Changes in the tenant scope do not affect already provisioned SharePoint Online sites.

 

Please run the above mentioned cmdlets to see the added users in the picker and let us know if that worked for you!

Highlighted

Hi Sarat

 

Thank you for the answer and sorry for the late response.

 

It works!

 

Is it possible to specify that all new sites that are created should have ShowPeoplePickerSuggestionsForGuestUsers set to True?

 

Regards

Jakob Rohde

Highlighted

Hi - picking up on this for my need - I am not sure if I am going mad - running the below is not working, should it be?

 

Set-SPOSite -Identity https://domain.sharepoint.com/sites/testsite -ShowPeoplePickerSuggestionsForGuestUsers $true

 

thanks

Highlighted

In fact - the site does not have this property - do you need to set at tenant first?

Highlighted
I cannot find this setting in either set-spotenant or set-sposite. Is it enabled elsewhere?
Highlighted

I never did find the ShowPeoplePickerSuggestionsForGuestUsers feature on either commandlet. I did get it working this way, though I really don't understand why.

  1. User created via Azure AD New guest user feature
  2. Goto SPO and click Share (or add to a user group in SPO)
  3. Enter the users email address, same as the one used in step 1.

This works. After I did this, I also was able to find the user via their display name in the people picker.

 

 

Highlighted

This is probably from the cache of browser or outlook contact cache.

Highlighted
I’m pretty sure that it is not for two reasons. First, I do all of this administrative work in and in private browser. Second, these are email addresses that I have never seen before or emailed before. They are a list of users sent in from a client partner company.

As a sidenote, what I have started doing is inviting all users to AzureAD using powershell and then adding those invited users to sharepoint groups that have already been added to the document library, also via powershell.