Function API only Updated 17 Oct 2026
getFolderShares(path)
Returns the active shares for a specific folder.
Parameters
pathstringrequiredAbsolute path of folder to get shares for.
Returns
An object describing the folder's sharing, as seen by the user who published the site: Name, User (owner's email), Owner, AllowInvite, AllowPublish, Direct, MyAccess and Shares — a list with User (email), the access flags (AllowBrowse, AllowModify, AllowVisit, AllowCreate, AllowInvite, AllowPublish, AllowDevelop, AllowAdmin), Accepted and Since, including shares inherited from the folders above. When the publisher may publish, the object also lists the folder's publications and the available domains and templates.
Shares is only filled in when the publisher may invite others. null when the path is empty or the folder does not exist.
Example
Normal JavaScript, running in the browser or on the Docly™ server.
let info = docly.getFolderShares("Folder1");
return info;