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

8 lines
1.1 KiB
Markdown
Raw Normal View History

2023-01-18 04:14:32 +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, an email or sms with a link to join the team will be sent to the invited user and an account will be created for them if one doesn't exist. If initiated from a Server SDKs, the new member will be added automatically to the team.
2023-01-17 14:32:08 +13:00
2023-01-18 04:14:32 +13:00
You only need to provide one of User ID, email, or phone number. When multiple are provided, the priority will be user ID > email > phone number, lower priority parameters are ignored.
2019-10-08 06:06:55 +13:00
2021-11-11 04:32:10 +13:00
Use the 'url' parameter to redirect the user from the invitation email back to your app. When the user is redirected, use the [Update Team Membership Status](/docs/client/teams#teamsUpdateMembershipStatus) endpoint to allow the user to accept the invitation to the team.
2019-10-08 06:06:55 +13:00
2023-01-18 04:14:32 +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) the only redirect URLs under the domains you have added as a platform on the Appwrite Console will be accepted.