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


Jun 24, 2016, 9:22 AM
107 Posts

Working as designed

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 7
NotesACL.getEntry(String) can only find direct entries; see usage notes in Designer Help:
"If a person is not listed explicitly in the ACL, but is a member of a group listed in the ACL, getEntry does not find that person's name."


A possible workaround is to use NotesSession.evaluate(@UserNamesList), which should return a complete list of the current user's names, roles and groups the user is a member of.
Jun 24, 2016, 1:54 PM
107 Posts
More info
First of all, there's a little (but important) flaw in my suggested workaround in that the quotes are missing around @UserNamesList.
Second, it might be necessary to provide a formula context to the evaluate method; i.e., pass a NotesDocument object as second argument.


Here's a corrected version:


var session:NotesSession = database.getParent();

var doc:NotesDocument = <your code here>;
var userNamesList = session.evaluate("@UserNamesList", doc)
;

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