Hi,
How can one manage the permissions of another user (NT user) on a given object using EWS?
Regards, Michael
Hi, Michael.
The *NodeRight* methods on the DocumentManagement service can be used for retrieving and manipulating the permissions on nodes in Content Server.
These methods deal with a given right on a given node: AddNodeRight RemoveNodeRight UpdateNodeRight
These methods deal with all rights for a given node: GetNodeRights SetNodeRights
These methods deal with given rights across multiple nodes: UpdateNodeRightsContext/UpdateNodeRights
Thanks,
Scott
Thanks for your answer Scott. Can I manage permissions of another user on a given object using the methods you've mentioned?
You can as long as long as you have the "Edit Permission" permission for the node in question.
Thanks again Scott, I've got that working. Now hopefully my last question on the topic:
Assuming I have a folder with n child objects, could I add permission for that folder and all its sub-items all in one call using EWS? I could obvious iterate through the subitems and apply permissions accordingly, but is there a way to do this at one go?
Calling UpdateNodeRightsContext followed by calls to UpdateNodeRights would be the way to go. It's similar to using the UI to apply updates to "this item & sub-items".