As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
document.setInheritsPermissions(false);
<!– For now, owners can always see, find and manipulate their stuff –> <!– <globalPermission permission="FullControl" authority="ROLE_OWNER"/> –>
Warning: if you don't comment this line, the owner's document will always have all their permissions intact.
document.setPermissions("Coordinator", "GROUP_REVIEWERS");
Important: this code line is to be put before the other code line (setInerithsPermissions), because once has been executed the user can no longer assign permissions.