cancel
Showing results for 
Search instead for 
Did you mean: 

How to inherit a document's permissions from the Site Contributors group only

hernanisaurelio
Confirmed Champ
Confirmed Champ

I have a site and within this site there is a folder that everyone has access to.

but I need to make sure that in my document only the site managers have access.

I want to inherit permission for everyone except site managers.

I used a script inside: (Repository > Data Dictionary > Scripts):

//Removing everyone's permission
document.setInheritsPermissions(false);

//Giving permission to Site Managers only

document.setPermission("SiteManager");

//Giving permission for the logged in user to see your document
var username = document.properties.creator;
document.setPermission("Read",username);
document.setPermission("Write",username);

Permission to Site Managers group is not working what do I do.

Thank you very much in advance

1 REPLY 1

angelborroy
Community Manager Community Manager
Community Manager

Hope this helps:

https://gist.github.com/douglascrp/0a6353ae143e71466358c93b7e77c225

Hyland Developer Evangelist