document.getUniversalId() returns blank when user does not have permission on it

Hi,

I have created a database with some 5 documents in it. Now there are 2 usesr - “user1” and “user2”. Both users have access to the database. But only user1 has access to all 5 documents. “user2” does not ahve access to any of the documents.

Now i do the following:

DocumentCollection objDocumentCollection = objDatabase.getAllDocuments();

objDocumentCollection.getCount() ;

The getCount() method returns 5 when i login with user1 and user2.

But,

objLotusDocument = objDocumentCollection.getFirstDocument();

objLotusDocument.getUniversalID();

The getUniversalId returns proper value for user1; but it returns “” for user2.

Is this expected behaviour? Is there any documentation on this available?

TIA

Subject: document.getUniversalId() returns blank when user does not have permission on it

I assume your talking about standard LS properties Count and UniversalID, when you mention getCount and getUniversalId?

A user who does not have reader access must not be able to retrieve any information from that document. On the other hand, he/she is still allowed to see, how many documents are in this database (they can do so from the properties dialog). This behavior is consistent with the Notes security model, and because of this I don’t think that it is mentioned explicitly somewhere in the docs.