Hello,
i would like to know, how can i search in groups an people at once? I need to search in groups and people and sort them alphabetically.
Thanks
Solved! Go to Solution.
I guess you can't do this in a single REST invocation.
You need to filter groups in the first step...
{ "query": { "query": "SELECT * FROM cm:authorityContainer WHERE cm:authorityName like 'GROUP_ma%'", "language": "cmis" }, "include": "properties" }
... and to filter users later.
{ "query": { "query": "SELECT * FROM cm:person WHERE cm:userName like 'ma%'", "language": "cmis" }, "include": "properties" }
So you can merge the lists in your UI.
Is Java API an option?
I don't think so, we are using only Rest API by own backend writen in .NET Core and frontend writen in ReactJS.
You can try then something like this:
{ "query": { "query": "select * from cm:authority", "language": "cmis" } }
This is working and can you please help me with WHERE condition? How can i search all groups and users starting with "ma"? Thank you
I guess you can't do this in a single REST invocation.
You need to filter groups in the first step...
{ "query": { "query": "SELECT * FROM cm:authorityContainer WHERE cm:authorityName like 'GROUP_ma%'", "language": "cmis" }, "include": "properties" }
... and to filter users later.
{ "query": { "query": "SELECT * FROM cm:person WHERE cm:userName like 'ma%'", "language": "cmis" }, "include": "properties" }
So you can merge the lists in your UI.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.