Rest: How to remove a use from ACL list

When removing permissions for a user (ACL) using the webservices it removes the user from the list on the UI completely. When i did the same with REST, it seems to leave the user listed in the ACL list (with no permissions to the object). SO the differences is that the name of the user is still in the ACL list of the object, but they have no permissions ( as all checkboxes, ie: see/seecontent are removed )

Answers

  • Hi @Tim Jian

    If you bring up Smart View and remove users from the permissions list, you can see the DELETE REST API in developer tools of the browser. In my example:

    URI: http://Serverfqdn/OTCS/cs.exe/api/v2/nodes/185391/permissions/custom/219244
    Method: DELETE

    The above deleted the UserID 219244 which was explicitly given permission to the node: 185391 .

    Smartview + Browser dev tools usually gives you details of exactly what you need to run through REST API in Content Server.

  • Hi HSS2021,

    Thanks for the answer.

    But we are on CS 23.1. It seems there is no "DELETE" Method for it yet, I just checked it is available since 23.4, and Smart view is basically only browse view of folders. No administration pages are available in 23.1

    Your help is appreciated.

    Tim

  • HSS2021
    HSS2021 E Member

    Hi @Tim Jian

    While it is not documented, it still works.

    In Smart View, on any object, hover over with the mouse to get the inline action menu, click on the '…' icon and click on View permissions.

    You will have the ability to remove users by hovering over them and you should see a

    icon.

    If you enable Devtools on the browser and capture the delete, that helps you see the REST call being made and you can tailor it based on your needs.

  • Cool!!!

    I am going to try and will back here reporting what I got.

    Thanks.