Hi All,
When we hit any sugarcrm rest api to fetch all records in postman it shows "_acl
" attribute in response.
Is there any way to skip "_acl" in response.
Sample response:
"
"
Kindest Regards,
Shreya
Hi All,
When we hit any sugarcrm rest api to fetch all records in postman it shows "_acl
" attribute in response.
Is there any way to skip "_acl" in response.
Sample response:
"
"
Kindest Regards,
Shreya
Hello shreya dalvi,
I was checking on my end and from my tests, if you explicitly list the fields that you want to be retrieved the _acl information returns empty:
Take this as an example, if I retrieve only the name field you can see that there is no acl info on my response. This is using a user that has ACL restrictions on the "name" field.
Would this work for you?
More information on the filter endpoint can be found here:
https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_12.0/Integration/Web_Services/REST_API/Endpoints/modulefilter_POST/#Request_Arguments
I hope this helps.
André
Hi André,
Thanks for responding, please make some fields as hidden from roles field property as "None" and check what you get in result of postman.
Kindest Regards,
Shreya
Hi shreya dalvi,
Good catch, I was testing with the wrong user.
Thanks for double-checking.
With that in mind, I am not finding a straightforward way to remove this information from the request response.
The only approach that crosses my mind would be to create a custom endpoint in which you can manipulate what will be returned.