I gave an ACL role to users for data segregation. I want to fetch data from database but data must filter i.e. ACL. How to get data. Also I want a userkey and sitekey?


In that case you will need to send api key of the logged in user who access is limited by ACL (also check_permission = 1 in api params).

  • I tried but it gives me an error. error_message: "Failed to authenticate key". I also provide a api key and site key then it gives me a error. error_message "ERROR: No CMS user associated with given api-key"
    – deepak
    Apr 16 '19 at 9:51
  • How to get api key of user?
    – deepak
    Apr 16 '19 at 9:56
  • this error occurs if the the logged user doesn't have api key. You need to have api key for all user. Api key is only required when using rest api Apr 16 '19 at 10:13
  • How to get a user key using php?
    – deepak
    Apr 17 '19 at 5:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.