Manage Learn to apply best practices and optimize your operations.

Restrict shared agents

Ever felt annoyed by the fact that your private agents could be useful to DB users but not to all of them?

Ever felt annoyed by the fact that your private agents could be useful to DB users but not to all of them?

@If (@IsNotMember ("[ADMIN]"; @UserRoles) ; @Return (@Prompt ([OK]; "Restricted action"; "Sorry, only admins are allowed to run this action") ); "");
REM "Here goes the rest of your code"

In LotusScript

Dim adminRole As Variant
Dim rollCheck As Integer
' ** Check that the user has the role Admin
	adminRole = Evaluate ("@UserRoles")
	Forall roll In adminRole 
		If roll = "[Admin]" Or roll = "[ADMIN]"Then rollCheck = True : Exit Forall
	End Forall
' ** Exit if not Admin
	If Not rollCheck  Then
		Msgbox "Only Admins are allowed to run this action"
		Exit Sub
	End If

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com'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 ...

SearchDataCenter

SearchContentManagement

Close