I am hyperclocking my brain here trying to solve a little puzzle…
My app’s primary customers are doctors - but the actual users will be their assistants.
I would like to have a place on the app where the doctor is able to “add assistants” by typing their e-mail address - which triggers an invitation (probably through
Accounts.sendEnrollmentEmail). When the assistant opens the invitation and signs up (creating her own password), she has access to the doctor’s account (limited by her role). If the doctor removes this assistant of the list, her account gets deleted.
Any idea how I could get this done?