Forum Discussion
Kerem Yuceturk
Microsoft
Apr 12, 2019Configure modern search results to search all of your organization (rather than the current site)
Hey everyone,
We heard from many of you the need to be able to change the scope of your modern search results pages. When you create a new communication site or team site in SharePoint Online t...
- Apr 14, 2019
Hi Rick DeFoe, we are actually working on making that happen. We hope that will be coming in the next couple of months.
RahulBrill
Aug 26, 2019Copper Contributor
I am using the Site administrator ID to make the changes but getting below error.
Invoke-PnPQuery : Access denied. You do not have permission to perform this action or access this resource.
At line:1 char:1
+ Invoke-PnPQuery
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-PnPQuery], ServerUnauthorizedAccessException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerUnauthorizedAccessException,SharePointPnP.PowerShell.Commands.Base.InvokeQuery
Invoke-PnPQuery : Access denied. You do not have permission to perform this action or access this resource.
At line:1 char:1
+ Invoke-PnPQuery
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-PnPQuery], ServerUnauthorizedAccessException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerUnauthorizedAccessException,SharePointPnP.PowerShell.Commands.Base.InvokeQuery
Kerem Yuceturk
Microsoft
Aug 28, 2019RahulBrill, looks like a permission issue. Sorry it is hard to provide more guidance than that remotely. I'd look into all the security groups involved to make sure you have access, or try another admin user.
- RahulBrillOct 09, 2019Copper Contributor
Kerem Yuceturk I did found a way to execute the command.
it needs a tenant access right to execute the statement otherwise you end up in error.