For integration purposes I am regularly dumping/updating the full Salesforce database to our on-premise system. To do that, I am using a Salesforce admin user with all privileges (so that we can fetch all object and items).
How can we replicate the user permissions for on-premise use? Certain users are only allowed to acccess specific account on the Salesforce plattform, and we would like to be able to check their permissions on the on-premise database dump as well.
Is there a way to regularly dump the permissions table or call a Salesforce API in real-time ("e.g. to check if user #1 can access item #33 in object "accounts").