You can't check the users roles from standard Lotus Script - but it's easy if
you use the @UserRoles function. All @Functions can be calculated with the
Public Function hasRole( Role As String ) As Integer
'Function returns true if the current user has the [role] 'Role'
Dim userroles As Variant
hasRole = False
UserRoles = Evaluate( "@userroles" )
Forall entry In UserRoles
If entry = Role Then
hasRole = True
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.