Forum Discussion
Hi Russell,
As far as I know, there is no such a property.
If your folder structure is predictable some subsidiary objects' properties can be expanded. Here is the sample in PnP JS Core (as I can recall you use the lib) which represents the idea:
pnp.sp.web.getFolderByServerRelativeUrl(`${_spPageContextInfo.webServerRelativeUrl}/Shared%20Documents`) .folders .select('Name,ServerRelativeUrl,ItemCount,Folders/ListItemAllFields/HasUniqueRoleAssignments,Files/ListItemAllFields/HasUniqueRoleAssignments') .expand('Folders/ListItemAllFields/HasUniqueRoleAssignments,Files/ListItemAllFields/HasUniqueRoleAssignments') .get() .then(results => { return results.map(result => { return { ...result, HasUniqueRoleAssignmentsForFolders: result.Folders.results.filter(folder => { return folder.ListItemAllFields.HasUniqueRoleAssignments; }).length > 0, HasUniqueRoleAssignmentsForFiles: result.Files.results.filter(file => { return file.ListItemAllFields.HasUniqueRoleAssignments; }).length > 0 } }); }) .then(results => { console.log(results); }) .catch(console.log);
Maybe this can be helpful in some way.Cheers,Andrew- Deleted
maybe this link can help you with your search https://www.codeproject.com/Articles/678653/How-to-check-user-permission-for-the-web-list-or-S
Related Content
- Dec 13, 2021
- Feb 15, 2022
- Feb 20, 2024