Related question: Is "AllowUnsafeUpdates" available in SharePoint Online?
Since AllowUnsafeUpdates is not available via CSOM, i am trying to update this info in some manner.
I try this but no success
$adminUrl = "https://cutomer-admin.sharepoint.com" $userName = "[email protected]" $SPOSite ="https://customer.sharepoint.com/sites/SPSite1/" $DefaultEmailAddress = "[email protected]" Add-Type -Path "C:\Program Files\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.SharePoint.Client.Runtime.dll" Add-Type -Path "C:\Program Files\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.Online.SharePoint.Client.Tenant.dll" $creds = Get-Credential -Credential $userName $credentials = New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $creds $SPOCredentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials -ArgumentList ($creds.Username, $creds.Password) $Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SPOSite) $Ctx.Credentials = $SPOcredentials $Web = $Ctx.Web $SPODefaultEmailAddress = $web.EnsureUser($DefaultEmailAddress) $Ctx.ExecuteQuery() $Web.Author = $SPODefaultEmailAddress $Web["Author"] = $SPODefaultEmailAddress $Web.Update() $Ctx.ExecuteQuery()
Does anyone know if this is possible?