Subject: RE: Help with Domino search model
Do you mean for configuring (or writing?) a connector of some external identity management system? I’m still not sure if this is a good idea.
I what programming language would you write that code? If you do it accessing Lotus Notes object classes, would you want to keep a session open until there might be a need to update the document? If not, where would you store that UniversalID (or DocumentUniqueId)?
Even if this is not very likely: The DocumentUniqueId of a person document COULD change during it’s lifetime. If you come from a relational background, you might have been happy to find, that the UnId seems to work like a primary or unique key. Well, yes and no. The key is unique amongst all documents, but Domino doesn’t rely on it being the same too much. You would not do that just for fun, but it could just happen, that a Domino administrator had to recreate a user’s person document (with identical content, but different DocumentUniqueId). Domino wouldn’t really bother, as long as the users full canonical name (the first entry in the field FullName) is still the same and unique.
In a worst case, it could even be, that a whole Domino Directory would have to be copied (Notes copy, not file system copy), which would lead to all person docs getting new DocumentUniqueIds. As I said, nobody will do so just for fun (it would have severe impact on an environment with multiple replicating Domino servers and quite a bit of additional work would be necessary), but still it could just happen.
Also, performing a full-text search might not be the most efficient way to retrieve person documents. If a full-text index has been created for the Domino directory, it is something like a save bet to get anything in return. But depending on what you need, the GetDocumentByKey method of a NotesView object might be both, faster and more flexible. E.g. it takes an argument to determine, if the key must be matched exactly, or if it should just match the beginning of a value.
Could be I’m going over the top here and all this is not relevant for what you have to do, but at least I can say: You have been warned. 