1
0
Fork 0
mirror of synced 2024-07-06 23:21:05 +12:00
appwrite/docs/references/teams/create-team-membership.md

8 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2023-01-18 04:18:50 +13:00
Invite a new member to join your team. Provide an ID for existing users, or invite unregistered users using an email or phone number. If initiated from a Client SDK, Appwrite will send an email or sms with a link to join the team to the invited user, and an account will be created for them if one doesn't exist. If initiated from a Server SDK, the new member will be added automatically to the team.
2023-01-17 14:32:08 +13:00
2023-01-18 04:18:50 +13:00
You only need to provide one of a user ID, email, or phone number. Appwrite will prioritize accepting the user ID > email > phone number if you provide more than one of these parameters.
2019-10-08 06:06:55 +13:00
2023-10-14 02:43:44 +13:00
Use the `url` parameter to redirect the user from the invitation email to your app. After the user is redirected, use the [Update Team Membership Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus) endpoint to allow the user to accept the invitation to the team.
2019-10-08 06:06:55 +13:00
2023-01-18 04:18:50 +13:00
Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) Appwrite will accept the only redirect URLs under the domains you have added as a platform on the Appwrite Console.