Error 4005: You are not authorized to perform that operation (UProfile)

Can anyone give me some ideas on how to track down the following problem.

When the following piece of code runs, a Reader (ACL) gets a ‘Error 4005: You are not authorized to perform that operation (UProfile)’ error.

Dim session As New NotesSession

Dim db As NotesDatabase

Set db = session.CurrentDatabase

Set profileP=db.GetProfileDocument(“UProfile”, Lcase(session.UserName) )

I had put a $PublicAccess field with “1” as default value on the UProfile form. The user has the “Read/Write public documents” rights in the ACL.

I have watched it run in the LotusScript Debugger many times trying to get it. I tried with Author and Editor access types, but the error does not occur for those. I do not see any LotusScript code that may be run by the GetProfileDocument, so I am assuming that it is the GetProfileDocument itself that is having the problem.

Please let me know if I am missing something.

Thanks

Subject: RE: Error 4005: You are not authorized to perform that operation (UProfile)

You need at least Author access to create a profile document of any kind.

GetProfileDocument is a back-end method. What you do on a form is irrelevant.

Subject: RE: Error 4005: You are not authorized to perform that operation (UProfile)

Thanks…

I will try a different approach then.