且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

[Office365]在搜索栏中找不到由Powershell脚本创建的Sharepoint站点

更新时间:2023-02-07 16:16:41

你好Dwyane,


你是什么意思"如果我不在群组中,我无法使用搜索栏找到该网站" ; ?


您不是该组的所有者或成员,是不是?


默认情况下,SharePoint搜索具有安全修整功能,如果您不没有项目的权限,搜索时你不会看到它。


因此,请确保你是该组的所有者或成员。


此外,更改群组后,请等待24小时进行抓取。


谢谢,


Wendy


Hello,

I created a script that takes information from a CSV file, which has for goal to create an office 365 group and a SharePoint site with the given name, as well as the owners and the members of the group.

I'm using the module SharePoint pnp (patterns and practices) to achieve that with the cmdlet new-pnpUnifiedGroup. Note, I know that another cmdlet exists, which seems to do the same thing "New‑PnPSite".

The creation of the group is working and the SharePoint site is created, i checked that with the cmdlet "Get-SPOsite", but it seems that I'm unable to find the site using the search bar if I'm not already in the group. I did quite a bit of research about it and tried few things, but nothing helped. And there is also, the fact on our demo tenant, we don’t have this problem and i tried to check the configuration of both Sharepoint admin panel, but they seem to be similar.

I still think that it’s a configuration issue but I can’t seem to find it. Any suggestions on why this happens and how to solve it ?

Thanks for you help

Hi Dwyane,

What did you mean that " I'm unable to find the site using the search bar if I'm not already in the group" ?

You are not a owner or member of the group, is it right?

By default, SharePoint search has security trimming, if you don't have permissions on an item, you will not see it when searching it.

So, please make sure you are a owner or member of this group.

In addition, after you change the group, please wait 24 hours for crawling.

Thanks,

Wendy