Skip to main content

I'm trying to get all members of an organization.

  • we have more than 100 users in the organization. I've downloaded the CSV to double-check it.
  • we have an enterprise plan

Expected:

  1. limit of 100 users per request
  2. cursor field in JSON response for the subsequent request

Issue:

  1. there is no cursor field in the JSON response.
    1. It only returns when I use the query cursor in the request. Maybe it should return next_cursor or always return cursor. To make the pagination work, I had to get the ID of the last user in the array and set the cursor in the query.
    2. My suggestion here is to have a section in the documentation explaining how the pagination works. I've seen it in other documents.
  2. there is an unexpected/undocumented field, "type": "cursor-list"

Documentation:
https://developers.miro.com/reference/enterprise-get-organization-members

  • t's quite strange to have a query object than a typical query. I've tried a standard query, and it worked. I guess that the documentation needs to update. It's creating a wrong request:
    curl --request GET \
    --url 'https://api.miro.com/v2/orgs/XXXXXX/members?query=cursor=XXXXXXXXX' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer XXXXXXXXXXXXX'

     

Hey Rafael,

 

I was able to reproduce this, I think there is a bug with the response - thanks for flagging. 

I’ve made a ticket for the team, hopefully we can fix it fast!

 

Addison


Hey Rafael,

 

I was able to reproduce this, I think there is a bug with the response - thanks for flagging. 

I’ve made a ticket for the team, hopefully we can fix it fast!

 

Addison

Addison, has this issue been fixed?


Hi everyone - sorry for the delays. I just checked the ticket and there is some action/movement on it, but it has not yet been resolved. I’ve asked the team for an update, and hopefully we can resolve it soon. 

 

 


So I’ve checked with the team, and there haven’t been updates made to the API, but they’ve updated the documentation on this endpoint to make it more clear on how to use it. 

I think the documentation should be more clear given the original issue reported! 

https://developers.miro.com/reference/enterprise-get-organization-members


Reply