Context:
I am trying to allow only certain parts of a xwiki to the anonymous user. More exactly, I would like to present only some parts of custom objects to unidentified users.
Problem:
To setup a working configuration, I would like to be able to use mass permission setting on a number of pages/spaces. I could read on the documentation of Permissions in the User Guide:
If needed, it’s even possible to write some script to control programmatically exactly what users are allowed to do.
But i could not find how it was possible, neither in Adminisation nor in Developper guide
Question:
How is it possible to read and set permissions on a page via a script or a REST API ?