Skip to main content

How to Retrieve Only Active Team Members Using Miro API?


Forum|alt.badge.img+1

I am trying to retrieve only active members of a team using the Miro API. While fetching organization members, I can filter active users using:

GET https://api.miro.com/v2/orgs/{orgId}/members?active=true

with the query parameter active=true.

However, when retrieving team members, the API returns all users (both active and deactivated), and I couldn't find any property in the response to differentiate active users from inactive ones.

Is there a way to filter out only active team members using the API? Or is there an alternative approach to achieve this?

Any guidance would be appreciated!

Was it helpful?

3 replies

William Bishop
Mironeer
Forum|alt.badge.img+4

Hi ​@ik varma,

Thanks for reaching out. If you’re interested in filtering out team members who are actively using Miro, I might recommend instead leveraging the `lastActivityAt` parameter. This should be a more accurate representation of when a user has last had activity.

For example, you might compare the ``astActivityAt` field with the current date, and if the difference is more than X days, you could consider that user “inactive”.

Let me know if this helps,

Will


Forum|alt.badge.img+1
  • Author
  • New Here
  • 1 reply
  • March 6, 2025

Thanks for your quick response will! 

I understand that “lastActivityAt” can help determine user activity, but my main concern is identifying users who currently have access to teams within an organization.  

I recently deactivated a member from the organization, and now they can no longer access teams within the organization. However, when I use the API:  
GET https://api.miro.com/v2/orgs/{orgId}/teams/{teamId}/members

I still see the deactivated member in the response.  

Is there a way to retrieve only members who are not deactivated from the organization? Any guidance on filtering out deactivated members would be greatly appreciated!  


William Bishop
Mironeer
Forum|alt.badge.img+4

Hi ​@ik varma,

Thanks a lot for clarifying.

As you suspected, our REST APIs are limited to the activity parameters mentioned above, in relation to understanding their activity in Miro.

However, if you are If you’re interested in looking only at the access/status of a Miro user, you could consider leveraging our SCIM API for this purpose. Our SCIM API is separate from our REST APIs, but does have a Users endpoint that allows you to filter on the status of a user as active or not.

You can find more details on our SCIM API and how to authorize here:
https://developers.miro.com/docs/how-to-enable-scim 

You might consider exploring a query like this to get only active users (not deactivated) in Miro:
`https://miro.com/api/v1/scim/Users?filter=(active eq true)` 

Let me know if it’s helpful!
Will


Reply