The data you can retrieve depends on the permissions you request your customer when they connect their account. Our API is modular, and will only allow access to data you have requested permission for through the Lean SDK.
If, for example, you do not need identity data, you can omit this from the list of permissions. This means that you will not be able to retrieve the customer’s identity data without asking them to update the permissions.
Likewise, Lean will only query the data that you ask for, so if you have the permission for identity data, but never call the identity endpoint, Lean will not retrieve the data.