Skip to main content

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

  • December 8, 2023
  • 5 replies
  • 216 views

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 ?

5 replies

Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • December 11, 2023

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


  • Author
  • New Participant
  • December 11, 2023

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 ?


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • December 11, 2023

Hello again @MadsenFr,

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


  • Author
  • New Participant
  • December 11, 2023

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 😉
Thank you very much for your help.


Matias.Monday
Forum|alt.badge.img
  • monday.com Team Member
  • December 12, 2023

Happy to help @MadsenFr 😁