Closed EdAlexander closed 1 week ago
Solved... ` var siteProperties = await context2.GetSiteCollectionManager().GetSiteCollectionPropertiesAsync(caseWeb.Url);
siteProperties.Title = SelectedCase.caseName;
await siteProperties.UpdateAsync(); `
If the user in question is a tenant admin but does not have the proper permissions on the site collection to make the changes as a site user there will be a permission denied error. Using the admin api's indeed is the solution here.
Category
Describe the bug
Cannot rename a site/web.
Steps to reproduce
` var caseWeb = await context2.Web.GetAsync(w => w.Title, w => w.Description, w => w.Url, w => w.MasterUrl);
Expected behavior
web title should be updated