We’re about to start building a web app using Realm. There will be many (hopefully thousands in the future) of small business tenants, most of which will only have a single user, but providing the ability to add multiple users per tenant is a must have feature at an early stage.
The Realm rule templates only seem to support access to “own” or “shared” documents, the latter of which is impractical, given each tenant could have tens of thousands of documents, which need to be accessed by all of the tenant’s users, including access to historic documents by newly added users.
Is there a standard or recommended way of setting up a rule, so that document access is controlled by a tenant ID, rather than a user ID? Assuming this is possible, does the SDK support user authentication against a tenant too?
Thanks in advance!