yuuvis® RAD Q&A

0 votes
by (190 points)

is there a way to revoke the rights granted with putAdditionalVisibilityList?
The use case is:
A user is invited to work on a document via a bpm process. That moment, he is granted visibility rights for the document. If this user refuses to work on the document or finishes his task, visiblity rights should be revoked again.

1 Answer

+2 votes
by (1.6k points)
selected by
 
Best answer

Hi,

you can just use the same endpoint to overwrite the visibility list and thereby removing the rights for that user.
To get the current visibility list you can use the getItem endpoint with the parameter additionalvisibility=true and then remove the user from that list before sending it to putAdditionalVisibilityList again.

Cheers,

Kolja

by (190 points)
So easy.
Thanks, works perfect.
...