Forum Discussion
Lee-Martin
Jan 16, 2023Copper 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...
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-Martin
Jan 16, 2023Copper Contributor
I 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, 2023Copper 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?- Lee-MartinJan 17, 2023Copper ContributorFigured it out, I needed to add sites before /<site>
https://<homesite>.sharepoint.com/sites/<site>