How can I grant access to Firebase locations to groups of users?
I found a good solution for only a group of users: Access to Firebase locations for a group of users
It has the property group: "group name"
but in my case, it should have a property groups: [ 'group1', 'group2', ]
or groups: 'group1, group2, ...'
. groups
can be a dictionary object {'group1': true, 'group2': true}
.
Here is the JSON structure.
"Groups": {
"group1": { "user1": true, "user2": true, ...},
"group2": { "user3": true, "user4": true, ... },
"group3": ...,
...
}
"Products": {
"product1": {
...
"groups": ["group1", "group2"], "group1 group2" or
{"group1": true, "group2": true}
}
}
So the users user1, user2, user3, user4
, members of group1, group2
can access the product product1
.