[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 944
  • Last Modified:

Obtain User Access level in LotusScript...

I need to obtain a user's access level, from the ACL of the currently opened database, within lotusscript. The @UserAccess function returns the info I'm looking for, but doesn't seem to work in Script.

Sample code would be appreciated.

Thanks!
0
SAK
Asked:
SAK
1 Solution
 
ghassan99Commented:
this is a simple script to fetch the current user's access level:
Dim session As New NotesSession
Dim db As NotesDatabase
Dim level As Integer
Set db = session.CurrentDatabase
level = db.CurrentAccessLevel

The return values are one of these:
ACLLEVEL_NOACCESS No access
ACLLEVEL_DEPOSITOR Depositor access
ACLLEVEL_READER      Reader access
ACLLEVEL_AUTHOR      Author access
ACLLEVEL_EDITOR      Editor access
ACLLEVEL_DESIGNER Designer access
ACLLEVEL_MANAGER Manager access


0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now