Is there a way to delete the iNotes profile and Calendar profiles easily for iNotes users?

Technote (FAQ)


Question

Is there a way to delete the Lotus iNotes profile and Calendar profiles easily for iNotes users?

The scripts in the technote below involve users clicking a button in the Notes client to delete their profile:

How to delete Profile documents manually or using LotusScript (# 1088892)


Answer

The agents below can be run in iNotes users' mail files by a user with Full Access Administrator rights.

To do this, follow the steps below:

1. Open up the users mail files in the Administrator client \Files tab and browse to the user mail files.

2. Create the LotusScript agent(s) in the mail files, copying the following script into the Initialize section of each:

Agent to Delete iNotes Profile:

Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As notesdocument
Set db = session.CurrentDatabase
Set doc=db.GetProfileDocument("iNotesProfile")
Call doc.remove(True)
If doc Is Nothing Then
MsgBox "iNotes Profile Document was successfully removed"
Else
MsgBox "iNotes Profile Document was not removed"
End If
End Sub

Agent to Delete Calendar Profile:

Sub Initialize
Dim session As New NotesSession
Dim doc As NotesDocument
Set doc=session.currentdatabase.getprofiledocument("CalendarProfile")
If Not doc.isnewnote Then Call doc.remove(True)
If doc Is Nothing Then
MsgBox "Calendar Profile document was successfully removed"
else
MsgBox "Calendar Profile was not removed"
End if
End Sub

3. In the Basic Agent Properties/Runtime, ensure the agent is triggered
- To run from the Action menu.
- Target is all documents in the database.

4. Run the agents from the action menu in the user mail file to delete their iNotes and Calendar profiles.

Note: You may want to hide/delete these agents after they have been run so that the user will not run them which will reset all of their iNotes/Calendar preferences.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM iNotes
Administration

Software version:

8.0.2, 8.5

Operating system(s):

Windows

Reference #:

1497443

Modified date:

2014-04-15

Translate my page

Machine Translation

Content navigation