title: How to automatically connect a new user to an existing node in Firebase Realtime Database
body: <p>I've been trying to build a chore management app with React Native.
  I've got basic CRUD functionality and user authentication with Firebase down so now I want to move on to user management.
  Right now, there's only one user which is connected to one chore list, but I also want users to <strong>invite other users to their chore list and create and delete chores together.</strong></p>
  
  <p>I'm planning my database like below.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>- chore-lists
    - chorer-list 1
    - chorer-list 2
    - chorer-list 3
    - chorer-list 4
  - users
    - user 1
      - chorer-list 1
    - user 2
      - chorer-list 2
    - user 3
      - chorer-list 3
    - user 4
      - chorer-list 4</code></pre>
  </div>
  </div>
  </p>
  
  <p>Below is my user story:</p>
  
  <p>User 1, Koki, wants to invite her partner, Jun, to use her chore-list together, but Jun doesn't have a user account.</p>
  
  <ol>
  <li>I want Koki to send an invitation email from the app</li>
  <li>Jun receives the email and clicks a link getting navigated to App Store</li>
  <li>Jun signs in her Google account to the app and gets to use Koki's chore-list together</li>
  </ol>
  
  <p>Questions:</p>
  
  <p>To make the story happen, the Jun's new user ID needs to be automatically associated with chore-list 1.</p>
  
  <p><strong>Is there any way you can connect a new user ID to an existing node when the user first time signs in?</strong></p>
  
  <p>I'm thinking about using Firebase Dynamic Links for invitation email. Is it possible to add the chore-list key as payload in url parameters and connect the new user ID with the key.</p>