How to extract List of authors in AEM using XTYPE query | Community
Skip to main content
ranadyutis95334
New Participant
December 22, 2015
Solved

How to extract List of authors in AEM using XTYPE query

  • December 22, 2015
  • 3 replies
  • 1237 views

We need the list of users who are author. we are trying below query :

/jcr:root/home/users/*//element(*,rep:User).

but this is giving error. Please help.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by leeasling

Try this:

/jcr:root/home/users//element(*, rep:User)

Also, the query debug tool is a great way of playing with queries: http://localhost:4502/libs/cq/search/content/querydebug.html

3 replies

New Participant
December 22, 2015

Not out of the box.  You'd need to write some code to do that for you.

ranadyutis95334
New Participant
December 22, 2015

Thanks a lot. Is there a way to extract this data in csv or text file

leeaslingAccepted solution
New Participant
December 22, 2015

Try this:

/jcr:root/home/users//element(*, rep:User)

Also, the query debug tool is a great way of playing with queries: http://localhost:4502/libs/cq/search/content/querydebug.html