staticbackendhq / core

Backend server API handling user mgmt, database, storage and real-time component
https://staticbackend.com
MIT License
682 stars 66 forks source link

Add / remove user from account #99

Closed dstpierre closed 1 year ago

dstpierre commented 1 year ago

Eventhough the account model is Account->Users there's no way to add and remove users from an account.

The adding part should be straightforward, but removing a user poses the question of what happen with the documents created by that user. The default permission is account's users can read, but cannot modify docs created by other users in their account.

I suppose this is a responsibility of the application to handle this via permissions that would allow other users from same account to modify/delete document they haven't created.

For the v1.5, only adding and removing will be added and depending on the feedback, StaticBackend will maybe bulk updated the owner of document when deleting. TBD.