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
- delete cancelled site deployment
I would like to remove a cancelled site deployment, but the site menu shows only "Redeploy".
- Self-host migration from 1.8.X
Is it safe to now migrate from 1.7.4 to 1.8.X on my selfhost?
- DeploymentStatus enum value `canceled` m...
Hey, Sorry if it has been reported already, I found an issue using the Dart SDK where the `canceled` enum value is missing from `DeploymentStatus`. This causes...