title: Creating groups with Firebase Realtime Database in Android app
body: <p>I have an Android app that uses the Firebase Realtime Database. At the moment it is a single user app, in that when a user logs in, using Firebase Auth, the data they create is kept private to them. What I need to do for the next phase of the project is to allow for the creation of teams or user-groups that have access (read and write) to the data currently created by a single user.</p>
  
  <p>The database structure and rules for doing this are understood, however, the issue I have is how to create the groups.</p>
  
  <p>I did find the following blog and it is very close to what I need, it does not make clear how a new user would create the pending membership entry in a specific "chat" (this is a group chat sample).</p>
  
  <p><a href="https://firebase.googleblog.com/2016/10/group-security-in-firebase-database.html" rel="nofollow noreferrer">https://firebase.googleblog.com/2016/10/group-security-in-firebase-database.html</a></p>
  
  <p>Any points on resolving this final issue would be much appreciated.</p>
  
  <p>Sid</p>