REST API - delete Person

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

REST API - delete Person

I can create, update, query, etc a Person.   But no DELETE?  Why?  I've been Googling and can't find a mention of this anywhere. Using community v6.2.

1 Reply
Highlighted
Moderator
Moderator

Re: REST API - delete Person

I think there is no V1 api to delete person or at least it is not document in dcumentation if there is even any. 

However, you can use Person Update V1 api to disable the user as a workaround. If users are synced from AD, it is recommended to disable the user instead of deleting it.

https://docs.alfresco.com/6.2/concepts/dev-api-by-language-alf-rest-manage-people-groups-update-pers...

If you still need to delete the user, use the Repository api: https://docs.alfresco.com/5.0/references/RESTful-PersonPersonDelete.html

Delete a person.
 
The web script description document specifies the following options:
 
Value Description
json The default response format
admin The authentication access
required The transaction level
argument The format style

 

Example:

HTTP DELETE Request:

http://localhost:8080/alfresco/service/api/people/testUser

 

Note that, only users with admin role can create/update/delete users and groups.

~Abhinav
(ACSCE, AWS SAA-C02, GAIQ)