Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Populating the ACL column via REST service on new rows

Thank you Max:

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

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

Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Populating the ACL column via REST service on new rows

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Populating the ACL column via REST service on new rows

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

TomMcCann
Posts: 0
Joined: Sat Aug 17, 2013 2:27 am

Populating the ACL column via REST service on new rows

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)

Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Populating the ACL column via REST service on new rows

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

Return to “Issues”