API : Is there a way to get the team attached to a board?d

Before to add a new line in a board with a people column I need to verify if the user exist on Monday otherwise it fails.
I got team list, but found no way to know which team is attached with a board.
Is it possible ?
How to get this information ?

Hello there @MadsenFr,

I am not sure Exactly what you need but maybe something like this can help:

{
  boards(ids: 1234567890) {
    subscribers {
      id
      name
      teams {
        name
        id
        users {
          id
          name
        }
        owners {
          id
          name
        }
      }
    }
  }
}

Cheers,
Matias

Fisrt of all thanks for your reply.
But it seems it’s the same that just doing query {teams {name users {email}}}, which gives all the teams.
What I need it THE team attached to a board.
Do you have any idea for this specific purpose ?

Hello again @MadsenFr,

What do you mean when you say “THE team attached to the board”?

I’m sorry your answer is right, but I was confused because I did’nt know the concept of subscribers and only know about teams.
So when you give me the list of all subscribers of a board but with also all the teams they belong to I thought it was not what I was looking for.
But {boards(ids: 1273104328) {subscribers {id email}}} gives me all what I need.
Now I see it :wink:
Thank you very much for your help.

1 Like

Happy to help @MadsenFr :grin:

1 Like