How can I get list of workspaces & boards subscribed by an user

Hello, Good day everyone!

I’m working on a marketplace app and have a query relating to querying boards and workspaces.

I’ve a dropdown where the user can select the workspace → board and create an item in that board. I’m using monday.com APIs and it works as expected. The issue is relating to the write access to the board.

A particular user who’s not a subscriber to the board is not able to add an item to it. While this is expected, is there a way I can list only workspaces and boards that the user is subscribed to?

I’m aware the workspace and boards API allow us to query subscribers.

In case of Workspaces, there is a key named users_subscribers but only 25 count is returned by default.

In case of boards API - key is subscribers. I didn’t find any limit of results returned mentioned in the doc but still wanted to confirm here. Do we have any limit on subscriber entities returned as part of response?

When it’s being returned with limits, the only way to retrieve the user subscribed boards and workspaces is to paginate through the results by firing repeated API calls.

Is there any other efficient way to achieve this? Any inputs (or) if there is a solution/resource that I can read through also would be of great help.

Thanks

Hello there @mari-strivelabs and welcome to the community!

You are correct. There are some default limits for specific objects.

You can use the limit argument to retrieve the amount of subscribers (such as users_subscribers(limit: 10000) )

There is currently no “users” query that will give you everything a specific user is subscribed to or a “user_id” kind of argument to add to “workspaces” or “boards” to filter them.

I think your approach should work!

2 Likes