AnsweredAssumed Answered

Find users with Lucene query using QName

Question asked by abarisone on Aug 23, 2011
Latest reply on Sep 7, 2011 by abarisone
Hi all,
I'm trying to get the list of all users belonging to a certain group using a Lucene query.
Placing it into Alfresco Node Browser as:

TYPE:"cm:person" AND @cm\:userName:"*" AND QNAME:"sys:system/sys:authorities/cm:GROUP_USR_0000011046/*"

I correctly obtain all the users for that group.
But when trying to use it into the Alfresco debugger as:

search.luceneSearch("workspace://SpacesStore","TYPE:\"cm:person\" AND @cm\\:userName:\"*\" AND QNAME:\"sys:system/sys:authorities/cm:GROUP_USR_0000011046/*\"","@cm:userName",true)
%

I get this error:
    Wrapped org.alfresco.error.AlfrescoRuntimeException: 07230052 Failed to execute search: TYPE:"cm:person" AND @cm\:userName:"*" AND QNAME:"sys:system/sys:authorities/cm:GROUP_USR_0000011046/*"
Can anybody help me about this issue?
Thanks a lot!!!

Outcomes