REST API list of users w/ only few properties

Hi.
I use the rest api like described here (https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI#HGettingthelistofusersusingXWQL) to get all users as xml:

https://<server>/xwiki/rest/wikis/xwiki/query?q=,doc.object(XWiki.XWikiUsers) as obj&type=xwql&className=XWiki.XWikiUsers

This will create the xml w/ 8 MB for around 600 users. But we don’t need most of the properties. We just need first and last name and the email.

Could the query be changed to just return the properties “first_name”, “last_name” and “email”?

Regards, Simpel

Hi,

I suppose you can do it, but only for individual user like Object properties: .../pages/{page}/objects/{className}/{id}/properties/{property}.

1 Like