Today I come again to ask for help.
I need to filter out all the disabled users. So far I got this CMIS query to get the ID from every user:
"SELECT cmis:objectId FROM cm:person WHERE cm:homeFolderProvider = 'userHomesHomeFolderProvider' "
Then, I got this query to get the ID from every disabled user:
"SELECT cmis:objectId FROM cm:personDisabled"
So, to filter out all the disabled users, I query:
"SELECT cmis:objectId FROM cm:person WHERE cmis:objectID NOT IN (SELECT cmis:objectId FROM cm:personDisabled)"
But the software runs into an error. I'm testing this with cmislib3 for python, the node browser inside alfresco and want to develop a javascript webscript to send mails to every active user.
I hope you can help me with this question.
Best regards,
Ignacio
Solved! Go to Solution.
I guess you need some code at this point, since the information can't be retrieved using a single SQL Query.
You need to perform 2 queries and filter out the disabled users.
I guess you need some code at this point, since the information can't be retrieved using a single SQL Query.
You need to perform 2 queries and filter out the disabled users.
Thanks, I had already resigned myself to this solution. I guess it is out of the CMIS boundaries.
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.