Q: Does anyone know, how to find out the owner of a note? If it is not possible with note, can we find out the owner of the NSF? The method should work seamlessly for NSF’s belonging to different templates.
A:
Documents(notes) do not have an ‘owner’ of a document, per se.
1. Unless you've designed the application such that there is a field "Owner" that is created with @username when composed.
2. Use @author to return the names of people who have modified a document.
3. Principal is the original sender of an email message.
Agents have an owner: notesAgent.Owner
Mailfiles have an owner listed in the profile document. Read up on getprofiledocument to learn how to access this.
NSF files don’t necessarily have an owner.
1. They might have one or more people with Manager access in the ACL. (notesdatabase.getmanagers or @DbManager)
2. Unless you've designed the application such that there is a field "Owner" in a profile document, like there is in mailfiles.