#Document Permissions ... User array vs Teams

1 messages · Page 1 of 1 (latest)

wheat goblet
#

In my app, I will have multiple users who need read accesss a document, but ONLY them. Sometimes its 2 people and sometimes it will be 100 but sometimes 5000. What is the best most effective way to do permissions to these documetns.

What is the limit of users i can specify in the permissions array of a document?? At what point is it too many for performance reasons?

Is it efficient to use "teams" to group people who need access to a particular set of resources?

Can I have 1,000,000 teams without a problem?

TIA

#

Document Permissions ... User array vs Teams

burnt axle
wheat goblet
#

Hmm... ok, Thanks.

So to explain it further.

My application has a concept called a "space". and a user can be part of many spaces, none, or just one.
I was hoping these atomic elements that are added to a space could be documents, but ran up against this issue.

I think I have to do collection level access, each space being a collection, and then I could assign a team to a collection.
And I think this covers it.

Or I can do object storage with presigned files.

Any more thoughts from anyone are much appreciated.

narrow flicker
#

A warning though - members of a Team can see other members of the Team, but this doesn’t sound like something that would be an issue for you?