Get a list of all the owners of a board via the api

Hey,

So I noticed that via the api I only get the first owner of a board.

I need to either get a list of all the owners of a board or know if the signed in sdk user is an owner of the board.

My use case is - if the board has edit content permissions and not edit everything permissions then I’d like to allow only board owners to edit an eazyform (a board view). How can I achieve this?

Thanks,
Ronen
Eazyform

Hey @rbabayoff,

I also couldn’t query more then 1 owner, let’s ask @AlexSavchuk, he always has a good answer :slight_smile:.

Greetings

Hey @rbabayoff,

Right now it wouldn’t be possible to check who the current user is through an API call - this would only be possible by making an SDK call from the application. It’s something we’re hoping to tackle in the future, however we don’t quite have an ETA on this right now.

-Daniel

Hey @dsilva, that is not my issue, my api calls are always via the sdk.

To clarify - right now I’m only getting the first owner and not all the owners of the board in the boards graphql response of this query:

query BoardColumns($boardId: Int!) {
  boards(ids: [$boardId]) {
    id
    name
    state
    permissions
    board_kind
    
    owner {
      id
      name
      email
    }

    subscribers {
      id,
      name,
      email
      enabled,
      is_guest,
      is_view_only
    }
  }
}

I’d like to get all the owners.

Note also that the subscribers list also doesn’t have a is_owner property, which would be nice to have and would also solve my issue.

Thanks,
Ronen

Hey there @rbabayoff,

Thanks for checking in on this and for clarifying further what you would like to achieve. To be transparent with you, I’ve just tried playing around with this and I wasn’t able to get more than 1 owner myself on my end - this is something I’ll have to investigate further with the team to see if there is something we can provide as an option here.

@TMNXT-Dev thanks so much :slight_smile: Sorry that I wasn’t able to live up to the hype this time around, but let’s see what we can do here.

-Alex

Thanks @AlexSavchuk, looks like the easiest may be to just add an is_owner property to the subscribers list.

Cheers,
Ronen

Hey @AlexSavchuk and monday team , any news on this? Implementing billing and would like to allow only admins to pay, and don’t want to ask for additional scopes such as users:read and teams:read just due to billing. I understand that even if I want to add them, there is currently an issue with adding scopes to an existing app.