cancel
Showing results for 
Search instead for 
Did you mean: 

Get a list of all Enabled Alfresco Users

skarvenz
Champ in-the-making
Champ in-the-making
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?
1 REPLY 1

mikeh
Star Contributor
Star Contributor
Looking at the code, it expects all filter parameters to be strings. I suggest you raise the issue in JIRA (see the link in my signature) - that way you'll get notified when it gets fixed.

Thanks,
Mike