Assign permissions to a document with multiple sets - REST API

Hi,

I was wondering if is it possible to assign multiple permission sets to a document using this request:

I did manage to assign one set as described in the example above. Didn't manage to assign 2 sets. My body syntax is incorrect?

I tried couple of examples :

{"permissions":["see"],"right_id":147783,"permissions":["see","see_contents"],"right_id":203487}

or

{"permissions":["see"],"right_id":147783,["see","see_contents"],"right_id":203487}

None of the above worked. Is it even possible?

Thanks.

Answers

  • appuq
    appuq Member

    my gut feeling is that $marUI is the interface that uses the RESTAPI most in fact they created that to retire the classic UI. If I looked at the GUI on Smart it looks like this

    in effect, you can edit one ACL entry at a time so if you follow the graphic you are putting a user or Group a.k.a RightID, and the Permission bit (S, SC) onto the Object. And also if the object so happens to be a container what kinds of sub-container object do you want the right pushed to? When I used the +button it allowed me to add a single group multiple selections wasn't possible in that GUI

    In classic, it is no different but OT has a great utility built on that screen which I did not see in Smart which would have given you what you were looking for. On my screen if you look at the graphic next to

    APPUS PLAYING the button will yield a multi-group permission applier. The RH receives a list of all of that and uses a slow NodeCrawler or I have no idea if they have changed the code to a cursor now, but these were things one used to do when doing it the oscript way.

    I also think that WR may have a better function than here.