Page 1 of 1

Populating the ACL column via REST service on new rows

Posted: Tue Jul 16, 2013 8:22 am
by Dupdroid

Thank you Max:

https://getsatisfaction.com/apperyio/...

var acl = {};
acl[value]= { "read": true, "write": true };
return acl;


Populating the ACL column via REST service on new rows

Posted: Tue Jul 16, 2013 8:32 am
by Dupdroid

Is setting the ACL column using the REST service the preferred way or is there a better / automated method of doing it?


Populating the ACL column via REST service on new rows

Posted: Tue Jul 16, 2013 8:59 am
by Maryna Brodina

Hello! The only one way is to use Add JS option.


Populating the ACL column via REST service on new rows

Posted: Sun Aug 18, 2013 5:59 am
by TomMcCann

It's fairly typical that you may need more than one entry in the acl. For example, you may want the original author to have read/write access to the record and to allow other users to have read-access only. This can be achieved by attaching this code to the 'Edit JS' for the acl request parameter.

var acl = {};
acl[value] = { "read": true, "write": true };
acl['*'] = { "read" : true };
return acl;

(many thanks to the appery support guys who helped me with this)


Populating the ACL column via REST service on new rows

Posted: Mon Jul 20, 2020 11:17 am
by Dupdroid

\""write\"":true}}"" which should be: {""0000d21be4b00ae00e260000"":{""read"":true