cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a list of all users that are disabled in Alfresco 4.1

ramilramasola
Champ in-the-making
Champ in-the-making

Hello everyone,

I need to have a list of all users that are disabled in Alfresco 4.1. Be it in a form of SQL query or a webscript call.

Much better if in SQL query form.

Thanks!

1 ACCEPTED ANSWER

blade
Confirmed Champ
Confirmed Champ

Hi, I don't know how to do with SQL, but I found the REST api: http://<localhost>:<port>/alfresco/service/api/people

This is people's list with details.

I hope I help you.

View answer in original post

3 REPLIES 3

blade
Confirmed Champ
Confirmed Champ

Hi, I don't know how to do with SQL, but I found the REST api: http://<localhost>:<port>/alfresco/service/api/people

This is people's list with details.

I hope I help you.

ramilramasola
Champ in-the-making
Champ in-the-making

Cool thanks! Yeah I could just workout with the JSON response. Marking this as correct

kalpesh_c2
Star Collaborator
Star Collaborator

Hi Ramil,

You can use the 'people' object of REST api, and if you want only users whose account is disabled, then you can filter the users' list by people.isAccountEnabled("user") method.

For more info please refer these links http://docs.alfresco.com/5.1/references/API-JS-isAccountEnabled.html and http://docs.alfresco.com/5.1/references/API-JS-getPeople.html.

Thanks,

Kalpesh

ContCentric