This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 30, 2012, 1:05 PM
4 Posts
topic has been resolvedResolved

NotesACL.save()

  • Category: Server Side JavaScript
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: acl
  • Replies: 2
 Hi,
 
I have a ssjs to add an acl-entry to the acl of a database. 
 
 The code is not that complicated:
.... 
var acl:NotesACL = dbMail.getACL(); 
var acle:NotesACLEntry = acl.getEntry(groupname);
if (acle == null) {
acle = acl.createACLEntry(groupname, NotesACL.LEVEL_EDITOR); 
}
... 
acl.save(); 
.... 
 
But in the last line when saving the ACL it throws an error:
"Exception occured calling method NotesACL.save()
null" 
 
Any idea?
 
Thanks!  Joerg 
Apr 30, 2012, 1:43 PM
5 Posts
Re: NotesACL.save()
 Maximum internet username and password setting in database acl must be set as Manager for the acl to save via xpages.
Apr 30, 2012, 2:09 PM
4 Posts
Re: NotesACL.save()
 Thanks, that was the solution.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal