Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

How to extract List of authors in AEM using XTYPE query

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Level 8

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

View solution in original post

3 Replies

Avatar

Correct answer by
Level 8

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

Avatar

Level 4

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

Avatar

Level 8

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