AnsweredAssumed Answered

Get a list of all Enabled Alfresco Users

Question asked by skarvenz on Aug 24, 2011
Latest reply on Aug 24, 2011 by mikeh
I am trying to get a list of all enabled alfresco users. I can use the following curl call to get a list of all users:

curl –user [username]:[Password] https://[Server]:8443/alfresco/service/api/people -k

when I try adding the filter at the end to get only the users that are enabled:
curl –user [username]:[Password] https://[Server]:8443/alfresco/service/api/people?filter=enabled:true -k

I only ever get the following response - regardless of whether I try using true, false, 1, 0, on or off:
{
"people" : [
]
}

When I run curl –user [username]:[Password] https://[Server]:8443/alfresco/service/api/people?filter=userName:theUsersName I get the user returned so I know the syntax for the filter should work.

How do I pass a boolean value in the filter?

Outcomes