Subject: RE: have any one faced this peculiar problem “Privilege” notes release 2
during opening error is being thrown “You are not authorized”.
Ah. So your problem is not with read access to the document, but because of something else that’s happening when you open the document that you don’t have access to do, e.g. make a change to the document, access some information in another document, etc.
Of course i have checked there are no script for checking that in Postopen etc.
I don’t know what you mean by “that”. Look at your Postopen script, Queryopen, computed for display field formulas, keyword formulas, anything that executes when you open the document. You may be able to narrow it down a bit by noticing whether the error occurs before or after the document is displayed.
Any way i discovered, in the document “Who can read this document” that old privilege is mentioned. So do you know how to change that or remove that for all documents by some agent?
Yes, just use a formula agent such as, SELECT $Readers = “(privilege1)”; FIELD $Readers := @Replace($Readers; “(privilege1)”; “(NewRoleName]”)
Can that be overwritten by simply adding readers field in those documents.
No, you can’t overwrite the value in one item by adding values in another item.
And regarding supporting of privilege in Lotusscript, yes all though Roles property returns privileges, enableRole, disableRole does not support privilege. IBM awares about this fact and in notes 6 documentation they have also mentioned that.
Oh? But what about deleting the privilege entirely? Can you do that? Though of course that’s not so hard to do manually.
Incidentally, if your database ACL is so long that it makes sense to automate operations on it, it may be a good idea to consider using groups so that you end up with fewer ACL entries.