Invite a teammate

In a team workspace app, an admin invites a teammate by email and picks their role; if every seat on the plan is taken, the admin upgrades the plan before inviting. The teammate opens the invite within 7 days, creates an account or signs in, and joins the workspace; an expired or revoked invite opens a page of its own that tells them to ask the admin for a new one. While the invite is pending, the admin can resend or revoke it.

14 screens and steps16 arrows0 warnings

What UJN shows here Point at a note to see its part of the drawing

Invite a teammate  INVITE_TEAMMATEAn admin invites a teammate by email; the teammate signs up or signs in and joins the workspaceWorkspace admin (Actor) Role: AdminActorWorkspace adminAdminStart From workspace settingsStartFrom workspace settingsMembers (View) Seats used and pending invites Route: /settings/membersViewMembersSeats used and pending invites/settings/membersRevoke invite (Action) The link stops workingActionRevoke inviteThe link stops workingInvite teammate (Modal) Email and roleModalInvite teammateEmail and roleUpgrade for more seats (Journey) Prompt, then plan and payment Journey: PLAN_UPGRADEJourneyUpgrade for more seatsPrompt, then plan and paymentPLAN_UPGRADESend invite (Message) Channel: emailMessageSend inviteemailInvite email (Handoff, returns) The teammate opens the invite Channel: email Timeout: 7 d Resume: /invite/:tokenHandoff, returnsInvite emailThe teammate opens the inviteemail · 7 dInvite no longer valid (View) Ask your admin for a new one Route: /invite/expiredViewInvite no longer validAsk your admin for a new one/invite/expiredJoin the workspace (View) Shows who invited you and your role Route: /invite/:tokenViewJoin the workspaceShows who invited you and your role/invite/:tokenSign up (Journey) Email already confirmed by the invite Journey: SIGNUPJourneySign upEmail already confirmed by the inviteSIGNUPSign in (Journey) Already has an account Journey: SIGNINJourneySign inAlready has an accountSIGNINWorkspace home (View) Route: /w/:workspaceViewWorkspace home/w/:workspaceEnd, success Teammate joinedEnd, successTeammate joinedNo label Navigation from Workspace admin to from_settingsNo label Navigation from from_settings to MembersInvite · seat free Navigation from Members to Invite teammateInvite · seat freeResend · invite pending Navigation from Members to Send inviteResend · invite pendingSend invite Navigation from Invite teammate to Send invite Payload: {email, role}Send invite{email, role}No label Navigation from Send invite to Invite emailOpen link · valid Return, resume from Invite email to Join the workspaceOpen link · validOpen link · expired or revoked Return, resume from Invite email to Invite no longer validOpen link · expired or revokedCreate account Navigation from Join the workspace to Sign up Payload: {email} ReturnsCreate account{email}Join workspace · signed in Navigation from Join the workspace to Workspace homeJoin workspace · signed inInvite · no seat free Navigation from Members to Upgrade for more seats ReturnsInvite · no seat freeRevoke · invite pending Navigation from Members to Revoke inviteRevoke · invite pendingSign in Navigation from Join the workspace to Sign in ReturnsSign inGet started Navigation from Workspace home to joinedGet startedNo label Return from Revoke invite to MembersCancel Return from Invite teammate to MembersCancel
The source (38 lines)
invite-teammate.puml
@startujnrender { direction: down; arrow_spacing: 24 }journey INVITE_TEAMMATE "Invite a teammate"description: "An admin invites a teammate by email; the teammate signs up or signs in and joins the workspace"unique_id_friendly: invite_teammate actor admin { title: "Workspace admin"; role: Admin }start from_settings { description: "From workspace settings" }view members { title: "Members"; description: "Seats used and pending invites"; route: /settings/members }action revoke { title: "Revoke invite"; description: "The link stops working" }view invite_form { type: modal; title: "Invite teammate"; description: "Email and role" }ref upgrade { journey: PLAN_UPGRADE; title: "Upgrade for more seats"; description: "Prompt, then plan and payment" }action send_invite { type: message; title: "Send invite"; channel: email }handoff invite_email { title: "Invite email"; description: "The teammate opens the invite"; channel: email; timeout: 7 d; resume: /invite/:token }view invite_expired { title: "Invite no longer valid"; description: "Ask your admin for a new one"; route: /invite/expired }view accept { title: "Join the workspace"; description: "Shows who invited you and your role"; route: /invite/:token }ref signup { journey: SIGNUP; title: "Sign up"; description: "Email already confirmed by the invite" }ref signin { journey: SIGNIN; title: "Sign in"; description: "Already has an account" }view workspace { title: "Workspace home"; route: /w/:workspace }end joined { type: success; description: "Teammate joined" } admin --> from_settingsfrom_settings --> membersmembers --> invite_form : [Invite] seat freemembers -right-> upgrade : [Invite] no seat free { returns }members -left-> revoke : [Revoke] invite pendingrevoke ..> membersmembers --> send_invite : [Resend] invite pendinginvite_form ..> members : [Cancel]invite_form --> send_invite : [Send invite] { payload: [email, role] }send_invite --> invite_emailinvite_email ..> accept : [Open link] validinvite_email ..> invite_expired : [Open link] expired or revokedaccept --> signup : [Create account] { returns; payload: [email] }accept -left-> signin : [Sign in] { returns }accept --> workspace : [Join workspace] signed inworkspace -right-> joined : [Get started]@endujn