Lotus Notes Adapter 6.0 | webMethods Lotus Notes Adapter Documentation | webMethods Lotus Notes Adapter Installation and User’s Documentation | Built-In Services Reference | Built-In Services Reference | wm.ln.db:queryAccess
 
wm.ln.db:queryAccess
This flow service returns a person's, group's, or server's current access level to a database. Using this method at the same time an ACL object is in use may produce inconsistent results.
If the name you specify is not listed explicitly in the ACL, queryAccess does the following:
*If the name is a member of a group defined in the Domino Directory and that group name is listed in the ACL, queryAccess returns the access level of the group name.
*If the name is a member of several groups listed in the ACL, queryAccess returns the highest access level granted to any of the groups.
*If the name is not a member of any group, queryAccess returns the default access level.
*If the name you specify is listed explicitly in the ACL and is also a member of one or more groups listed in the ACL, queryAccess returns whichever access level is higher.
To see if a name is a member of a group, queryAccess uses the Domino Directories and Personal Address Books known to the computer on which the program is running. If the program is running on a workstation, queryAccess checks the Personal Address Book on the local computer. If the program is running on a server, queryAccess checks the Domino Directory on that server.
Input Parameters
user
String The name of the person, group, or server. For a hierarchical name, the full name must be specified but can be in abbreviated format.
database
Database The lotus.domino.Database object to query the access of a user in.
Output Parameters
accessLevel
String The current access level, which is one of the following:
*ACL.LEVEL_AUTHOR
*ACL.LEVEL_DEPOSITOR
*ACL.LEVEL_DESIGNER
*ACL.LEVEL_EDITOR
*ACL.LEVEL_MANAGER
*ACL.LEVEL_NOACCESS
*ACL.LEVEL_READER