Reputation: 11384
I am looking into different ways to implement multi tenant application - one of which is using AppEngine namespace API.
One of the requirements is that we will be able to access data of different tenants, but each tenant can access only it own data. This way we will be able to see trends that happen over several tenants.
Is it possible to do such thing using AppEngine namespace API ?
Thank you, Ido.
Upvotes: 3
Views: 371
Reputation: 11384
I manage to do that, partly, by using the NamespaceManager.set
method to access specific tenant data.
I can select one tenant data at a time but that's fine by me.
Ido.
Upvotes: 0
Reputation: 24966
Administrative access, where admins have access over all namespaces, but non-admin tenants have access to only their own, is something that is easily implemented using a small number of methods from the Namespaces and Users services.
See https://developers.google.com/appengine/docs/python/users/adminusers https://developers.google.com/appengine/docs/python/multitenancy/overview
Upvotes: 2