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.
<config evaluator="aspect-name" condition="cm:ownable"> <property-sheet> <show-property name="cm:owner"/> </property-sheet> </config>
function main() { //Assuming that the space is under Company Home var spaceName = url.templateArgs['spaceName']; var spaceNode = companyhome.childByNamePath(spaceName); logger.log(">>>>> Space Node : " + spaceNode ); logger.log(">>>>> Space Owner : " + spaceNode.getOwner() ); spaceNode.setOwner('requiredUserName'); logger.log(">>>>> Space Owner after setting : " + spaceNode.getOwner() ); } main();