Question

Server API provides SPWeb.Author property to access the creator of the site. However, managed client object model Web API doesn't seem to provide any such property. What is the alternative to get the author of the web object.

Was it helpful?

Solution

var spWeb = context.Site.OpenWeb("Test");
var creator = spWeb.Author;

Update the CSOM dll to the latest one or atleast August 2016 version. The author property is exposed. You can use it as above.

SharePoint CSOM version released for SharePoint Online - August 2016

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top