================== MANAGE PERMISSIONS ================== There is a possibility to share your data with other users in the G-Node Portal. To get an overview of object sharing consider the :ref:`nice example in the overview `. ---------------------------- Getting resource permissions ---------------------------- For objects, supporting sharing, you may request an **object state** together with :ref:`ACL ` by requesting: :: GET /electrophysiology///acl/ Response: :: Response: HTTP SUCCESS (200) { "message": "Here is the list of requested objects.", "logged_in_as": "/profiles/profile/5", "message_type": "object_selected", "safety_level": , # 1 = public, 2 = friendly, 3 = private "shared_with": { "": , # 1 = read, 2 = read and write "": } } Of course, getting just an **object owner** and **safety level** can be easy as :ref:`usual single object GET request `: :: Request: GET //// You'll find corresponding fields in the response as: :: Response: HTTP SUCCESS (200) { ... "selected": [{ "fields": { ... "safety_level": 2, "owner": "/profiles/profile/5", }, ... }], ... } .. _update_acl: ----------------------------------- Update resource ACL (share/unshare) ----------------------------------- To set particular ACL send the following HTTP POST: :: POST /electrophysiology///acl/?params { "safety_level": "", # 1: public, 2: friendly, 3: private "shared_with": { "": "", # 1: read, 2: read and write "": "" } } parameters: * [cascade] - true, false (default) - apply to all objects recursivery. All nested objects will be also updated. In development: * [notify] - true, false (default?) - users will be notified per e-mail :: Response: HTTP SUCCESS (200) { "message": "Here is the list of requested objects.", "logged_in_as": "/profiles/profile/5", "message_type": "object_selected", "safety_level": "", # 1: public, 2: friendly, 3: private "shared_with": { "": "", # 1: read, 2: read and write "": } } --------------- Bulk ACL update --------------- We consider developing this feature. Please drop a short email to the support@g-node.org to let us know that you need it. It will make the development much faster.