SharePoint Asked by SOURAV MUKHERJEE on October 25, 2021
I am using the following CSOM code to get the checked out files without any version
using (context)
{
List list = context.Web.Lists.GetById(new Guid("List id as string"));
var checkedOutFiles = list.GetCheckedOutFiles();
context.Load(checkedOutFiles, c => c.Include(i => i.CheckedOutBy, i =>
i.ServerRelativePath));
try
{
context.ExecuteQuery(); ;
}
catch (Exception ex)
{
// exception in case of read only site collections: Access denied
// working fine for others
}
}
It is working fine for all libraries in all subsites in site collections which have isReadOnly=false,
But in case IsReadOnly=true , I am getting an access denied error.
For those site collections in "IsReadOnly"= true , I am having no trouble reading properties for a site,subsite, groups, permissions,user,items etc.
My ACS token has full control app only permission to all the site collections in the tenant
As per Microsoft support. This is by design! Any change would require a "Feature change" request
Answered by SOURAV MUKHERJEE on October 25, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP