How to add permissions (user and role) to a branch using cssdk.
Using command line "
iwaccess add-permission-entryvpath -user user -role role" I understand it is pretty easy to add permissions .
But using CSSDK, when I have the CSBranch node I get the following options
brCSBranch.addPermissionEntry(CSPermissionEntry)
brCSBranch.addPermissionEntry(CSRole, CSPrincipal, int)
Note sure how to create a CSPermissionEntry/CSPrincipal.
Any help (if possible with example) please to add permissions on branch and workarea using CSSDK. Appreciate.