Providing user information in JSON
In the MUSE project we encountered the need to retrieve user information in JSON format. Easy done one would think. The trouble starts, when you have multiple directories and you need reasonable speed. Sometimes falling back to @Fomulas gives you what you need, fast and easy.
@NameLookup
knows where to look and you don't need any extra configuration. A simple call to an form will give you all you need: https://yourserver/somedb.nsf/namelookup?Readform
for yourself or add &User=John Doe
for any other user. This will return:{ "QueryName": "John Doe", "NotesName": "CN=John Doe/OU=ThePitt/O=GIJoe", "AllNames": [ "CN=John Doe/OU=ThePitt/O=GIJoe", "john.doe@thepitt.com", "John Doe/ThePitt/GIJoe", "John Doe", "john.doe" ], "eMail": "john.doe@thepitt.com", "MailDomain": "SACMEA", "MailServer": "CN=PittServer42/OU=ThePitt/O=GIJoe", "MailFile": "mail/jdoe.NSF", "Empnum": "0815", "Empcc": "4711" }
The form makes extensive use of
@NameLookup
and looks in DXL quite simple.