I'm using Alfresco 7.4.1.
I need to allow access to Alfresco with LDAP credentials only. I would like to change all the passwords of the local users, to no longer allow users access. Alfresco has around 1000 local users. Is there a way, via API, to be able to update all passwords?
I tried this API:
http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/people/f2df59d2-7187-400f-bcbb-aaaaca5b52c9/reset-password
with the following body, but it doesn't work.
{
"password":"newPassword",
"id":"user.name",
"key":"f2df59d2-7187-400f-bcbb-aaaaca5b52c9"
}
To change the password for multiple users I ran this script
To get the userNames of all Alfresco users, I made an API call (GET
/people
)