Manage Learn to apply best practices and optimize your operations.

Checking User Roles with Script

The only way in script to check the roles of a user in the IsRoleEnabled function from NotesAclEntry - class. But this function don't work, when the user is member of a group and the the role is enabled for the group.

I have create a function which checks, whether a role is set for a User even if he is a member of a group.

Example how the function is calling:


 If RoleEnabled("[Admin]") Then Messagebox "Role Admin is set" Else Messagebox "Role Admin not set" End If

 Function RoleEnabled(sRole As String) As Integer Dim vResult As Variant vResult = Evaluate(|@IsMember("| & sRole & |"; @UserRoles)|) If vResult(0) = 1 Then RoleEnabled = 1 Else RoleEnabled = 0 End If 'If vResult(0) = 1 End Function

Dig Deeper on Domino Resources - Part 3

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...