Thanks for reply, there is some details about the problem.
I’m using postman to make my rest calls, making operations on a new user TestApi, affected to XWikiAllGroup, visual of rights on the target space at this point =>
For setting rights on space named CNED, calling this endpoint on POST method:
http://*******/xwiki/rest/wikis/xwiki/spaces/CNED/pages/WebPreferences/objects
Here the KeyValue pairs I send :
{"key":"className","value":"XWiki.XWikiGlobalRights"}
{"key":"property#users","value":"XWiki.TestApi"}
{"key":"property#levels","value":"view,comment,edit,delete"}
{"key":"property#allow","value":"1"}
Visible result :
(New user restriction, only one pic per answer, they are correctly allowed)
I’m doing same thing to deny levels by sending :
http://*******/xwiki/rest/wikis/xwiki/spaces/CNED/pages/WebPreferences/objects
Here the KeyValue pairs I send :
{"key":"className","value":"XWiki.XWikiGlobalRights"}
{"key":"property#users","value":"XWiki.TestApi"}
{"key":"property#levels","value":"view,comment,edit,delete"}
{"key":"property#deny","value":"1"}
Visible result :
(New user restriction, only one pic per answer, they are correctly denied)
At this point, everything is OK. Let’s now try to allow one of this denied right
Here the KeyValue pairs I send :
{"key":"className","value":"XWiki.XWikiGlobalRights"}
{"key":"property#users","value":"XWiki.TestApi"}
{"key":"property#levels","value":"view"}
{"key":"property#allow","value":"1"}
Result is still the same, whatever I’m trying to send, seem like nothing can overwrite a denied right.
Regards