I'm using Salesforce REST API for migration of customers' data and from time to time I encounter this error: 'Implementation restriction: activity aggregate relationships only allow security evaluation for non-admin users when no other filters are applied' in a number of varieties.
I gather it's related to sharing settings of particular Salesforce objects or methods and show up when user has insufficient permissions of some sort. Usually I work around it by asking customer to provide admin credentials. Also I'm aware of ModifyAllData permission which would presumably also work.
The question is - is there a lesser and/or more appropriate permission that being set on non-admin credentials would allow mass data manipulation via REST API?
UPD1: 1. There is no issue of performance. 2. The error happens when I move data into Salesforce, not from it. A permission that has to do with writes is likely to be the one required.