Adding users to Team when accepting an Invite

Hi!
Has anyone looked into having users added to Teams when they accept an Invite?
My desired flow requires that I define a members Team memberships before sending out the invitation. So I would enter the new users email, along which teams it belongs to.

My current idea is that I will have a custom request to my backend, were I save the teams in a database and then have a afterAddMember hook that will add the new member to each of the Teams specified
Was this page helpful?