[MarkLogic Dev General] Retrieving a list of users
dnaguy at gmail.com
Fri Apr 6 11:49:03 PDT 2012
I should have added this snippet for Query Console...run it with the
Security database as the content source:
That XML that is returned are all the user records.
On Fri, Apr 6, 2012 at 12:46 PM, Harry B. <dnaguy at gmail.com> wrote:
> When I've done this, I use queries against the Security database to get
> the info. You can use Query Console to get a handle on how data is
> structured in the Security DB and I found great success with just using
> Xpath queries.
> One thing I found difficult to do was distinguish app/real users from
> system accounts, etc. The way I dealt with this was to add xml to the
> sec:password-extra element that contained user details, what applications
> they are users for, etc. The only downside, if it is one, is that you have
> to invoke these queries against the Security DB...
> I can give you some code examples, etc. if you have specific questions.
> On Fri, Apr 6, 2012 at 12:26 PM, Steve Carton <steve at chesbay.net> wrote:
>> Hi -
>> I need to develop a web-based GUI that will allow an admin user to
>> easily manage users of a web application. The desire is to have this
>> limited admin GUI available and integrated into a larger XQuery-based
>> web interface. I see functions to create, delete and modify Marklogic
>> users, but I don't see a way to get a list of them. Is there such a
>> function? Or, is there a way to query the security database to get such
>> a list?
>> Steve Carton
>> General mailing list
>> General at developer.marklogic.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the General