Sending in 5 min 😅
I think it was made optional in 1.4
Here I am, so the code to send it is:
try{
teams.createMembership(
teamId: "teamID",
email: "contacto@dh-sw.net",
roles: [],
url: "https://inicio.dh-sw.net");
} catch(e){
print(e)
}
Sorry for the delay, It took me longer than expected 😅
Maybe the issue is not specifying roles?
No that should work
What dart SDK you're using?
7.1.0
Try to use ID instead of email Is it working?
trying now
Nope, no luck 😢
Tried specifying a role, and no luck
Okay, solved
Can you
- add
awaitthen check thee
await teams.createMembership(
- check the logs?
Ohh
Great
How?
API scopes 😭😵💫
👍
Sincerely a dumb mistake 😆
Those are the most common
Yes. I thought I had enabled all scopes. Then double checked and saw it was disabled just for teams API 🤦♂️
I remember when first learning C, the author wrote "everyone will forget to add ;" I though I wouldn't. but I did, many times.
[SOLVED] Cannot add an user to a team through server SDK
Recommended threads
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- How to use Sites on selfhosted appwrite
whenever I try to create a site even with template it says 404 nginx error