As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
If you mean APS 1.7 and using REST API, you can use Get historic task instances | Alfresco Documentation This will only return tasks that current user (currently authenticated) can access (i.e. tasks user is involved in). In case you want to access all tasks without restrictions use process engine REST API Activiti User Guide (Note: only Tenant admins can use process engine REST APIs).