Forum Discussion
Lee-Martin
Jan 16, 2023Brass Contributor
Add-PnPTenantTheme - Attempted to perform an unauthorized operation.
I've tried to upload a theme, but I'm geting an Attempted to perform an unauthorized operation I'm an admin on the particular site I'm trying to upload to, so I assumed this would be enough permi...
Lee-Martin
Jan 16, 2023Brass Contributor
Thanks, I've tried that an am getting the error
Invoke-PnPSiteTemplate : Cannot contact site at the specified URL https://<myhomesite>.sharepoint.com/<mysite>. There is
no Web named "/<mysite>/_vti_bin/sites.asmx".
Invoke-PnPSiteTemplate : Cannot contact site at the specified URL https://<myhomesite>.sharepoint.com/<mysite>. There is
no Web named "/<mysite>/_vti_bin/sites.asmx".
SvenSieverding
Jan 16, 2023Bronze Contributor
Hello Lee-Martin,
Are you connected to the correct url? Like
https://<myhomesite>.sharepoint.com/sites/<mysite>?
What happens, if you execute the command "Get-PnPWeb"?
Do you get the same error?
Best Regards,
Sven
- Lee-MartinJan 16, 2023Brass ContributorI am connected, and I get a similar error when I run that command
- SvenSieverdingJan 17, 2023Bronze ContributorMhm.... thats wierd..
Get-PNPWeb should give you the name of the site you are connected to, even if you just have "read" permissions.
How did you connect to the site? What was the output of "Connect-PnPOnline"?
Best Regards,
Sven- Lee-MartinJan 17, 2023Brass ContributorI'm using Connect-PnPOnline -Url https://<homesite>.sharepoint.com/<site> -Interactive
The response when I try and add a theme using your method above gives me
Cannot contact site at the specified URL https://<homesite>.sharepoint.com/<site>. There is
no Web named "/gskgepo/_vti_bin/sites.asmx".
What is this "/_vti_bin/sites.asmx" stuff that gets added to the end?