QueryAccessRoles method
Returns the roles of a person, group, or server in a database.
Note This method is new with Release 6.
Syntax
roles = notesDatabase.QueryAccessRoles( name$ )
Parameters
name$
String. The name of the person, group, or server.
Return value
roles
String array.
If the name has roles, each element of the array contains one role. Each role name is surrounded by square brackets, for example, "[Supervisor]."
If the name has no roles, the array has one element that contains an empty string.
Usage
If the name you specify is listed explicitly in the ACL, then QueryAccessRoles returns the roles for that ACL entry and does not check groups.
If the name you specify is not listed explicitly in the ACL, QueryAccess checks to see if the name is a member of a group in the primary address book where the program is running: on a workstation the Personal Address Book; on a server the Domino Directory.
или
Evaluate({@UserNamesList })
Note This @Function is new with Release 5.
Syntax
@UserNamesList
Return value
names
Text list. Each list item is a name or role as specified above. Returns an empty string ("") if the current database is local and "Enforce a consistent Access Control List across all replicas" is not in effect, and the database is not replicated with the server database at least once.