Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Typo and rewording

...

GoalAlice wants to invite Bob to join her Synapse team.
Primary actorAlice
Secondary actorBob
PreconditionAlice has created a team and she is at her team's page.
PostconditionBob receives an email invitation to join Alice's team.

Workflow

Main success scenario

Step 1. Alice invites Bob to join her team by entering his email address and an optional invitation message.

Step 2. System sends Bob an email containing an invitation link to join Alice's team.

Error scenarios

Replacing step 2.

    1. The email address entered by Alice doesn't exist.
    2. System sends an email to Alice to notify her of the problem.
    3. Alice tries again with a different email address.

...

Mockups

View file
nameuse-case-a.pdf
height250

...

Goal

Alice wants to invalidate the invitation she sent previously.

Primary actorAlice
Secondary actorBob
Preconditions
  1. Alice has sent an email invitation to Bob.
  2. Bob hasn't accepted the email invitation yet.
PostconditionThe invitation link Bob received is no longer valid.

Workflow

Main success scenario

Step 1. Alice retrieves the pending invitations to her team and removes the one associated with Bob.

Step 2. System invalidates the invitation link sent to Bob.

Mockups

View file
nameuse-case-b.pdf
height250

...

Goal

Bob wants to create a Synapse account and accept Alice's invitation.

Primary actor

Bob

Secondary actorAlice
Preconditions
  1. Alice has sent an email invitation to Bob.
  2. Bob doesn't have a Synapse account.
PostconditionBob is part of Alice's team.

Workflow

Main success scenario

Step 1. Bob clicks on the invitation link in the email he received and is directed to the Synapse web client.

Step 2. The web client presents Bob with the option to create a Synapse account or sign in with an existing account.

Step 3. Bob creates his new Synapse account.

Step 4. The web client displays Alice's invitation to Bob.

Step 5. Bob accepts Alice's team invitation.

Step 6. System sends a notification email to Alice saying that Bob has joined her team.

Mockups

View file
nameuse-case-c.pdf
height250

...

Goal

Bob wants to sign in to his existing Synapse account and accept Alice's invitation.

Primary actor

Bob

Secondary actorAlice
Preconditions
  1. Alice has sent an email invitation to Bob.
  2. Bob has one or more Synapse accounts.
PostconditionBob is part of Alice's team.

Workflow

Main success scenario

Step 1. Bob clicks on the invitation link in the email he received and is directed to the Synapse web client.

Step 2. The web client presents Bob with the option to create a Synapse account or sign in with an existing account.

Step 3. Bob signs in with his existing Synapse account.

Step 4. The web client displays Alice's invitation to Bob.

Step 5. Bob accepts Alice's team invitation.

Step 6. System sends a notification email to Alice saying that Bob has joined her team.

Mockups

View file
nameuse-case-d.pdf
height250

...

Goal

Bob wants to create a new Synapse account but doesn't want to accept Alice's invitation

Primary actor

Bob

Secondary actorAlice
Precondition
  1. Alice has sent an email invitation to Bob.
  2. Bob doesn't have a Synapse account.
PostconditionBob has a Synapse account with a pending invitation to join Alice's team.

Workflow

Main success scenario

Step 1. Bob clicks on the invitation link in the email he received and is directed to the Synapse web client.

Step 2. The web client presents Bob with the option to create a Synapse account or sign in with an existing account.

Step 3. Bob creates his new Synapse account.

Step 4. The web client displays Alice's invitation to Bob.

Mockups

View file
nameuse-case-e.pdf
height250

...

I propose to support all the use cases except use case B. After multiple discussions about the necessity of use case B, I have come to the conclusion that it's an edge case that would incur significant development cost for little benefit. Supporting it would require our system to keep track of the invitation sent by Alice in some form, which is a requirement that none of the other use cases impose on us.

Models to implement

EmailInvitationMembershipInvtnSignedToken

emailAddress

teamId


emailAddress

inviteeId

inviterId

teamId

hmac

Related models: AccountSetupInfo

Services to implement

ActionIntended UserURIMethodRequest ParametersRequest BodyResponse BodySuccess Response CodeNotification Sent to Notes
Send email invitation with link to join a teamauthorized user/emailInvitationPOST
EmailInvitation
200 OKEmail address providedThe invitation link will contain an encoded MembershipInvtnSignedToken with inviteeId set to null
Create MembershipInvitation using a signed tokenpublic/tokenMembershipInvitation POST
MembershipInvtnSignedTokenMembershipInvtnSubmission201 Created
Similar to /membershipInvitation, but using a signed token for authorization. Also, doesn't send any email notifications.

Related services: POST /principal/availablePOST /accountPOST /session

...

[1] Note that this process is a bit different from the normal registration workflow because we are avoiding to have to validate Bob's email address. It'd be nonsensical to ask Bob to validate his email address since because he reached this state by clicking a link sent to his that very email address. Also note that this workflow only allows Bob to register the email address to which the invitation link was sent.

...