# Retrieve all sessions for my organization

**URL:** <https://devforum.zoom.us/t/retrieve-all-sessions-for-my-organization/5273>\
**Category:** API and Webhooks\
**Created:** [July 31, 2019, 3:17am UTC](https://devforum.zoom.us/t/retrieve-all-sessions-for-my-organization/5273 "2019-07-31T03:17:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ilan/32/1423_2.png) [@ilan](https://devforum.zoom.us/u/ilan)\
**Post date:** [July 31, 2019, 3:17am UTC](https://devforum.zoom.us/t/retrieve-all-sessions-for-my-organization/5273/1 "2019-07-31T03:17:53Z")

</div>

Hi,  
If i want to capture all sessions for my organization.  
How can that be accomplished ?  
Is my organization is a tenant and i can retrieve all sessions for a

1. Given date
2. Give username

When creating a zoom session, i assume it is created with session id, i would like to retreive the usernames who joined the session, if possible for how long, etc.  
I assume zoom session enforce SSO - this way i know how to detect the users

Thanks

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 31, 2019, 4:41pm UTC](https://devforum.zoom.us/t/retrieve-all-sessions-for-my-organization/5273/2 "2019-07-31T16:41:01Z")

</div>

Hey @ilan,

To clarify are you talking about Zoom Meetings, or Zoom Chat Sessions?

Here is the Zoom API endpoint to get all Zoom Meetings for a user.

> **[List Meetings - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetings)**
>
> List meetings for a user.
> Scopes: meeting:read:admin meeting:read
> 
> Authorization
> 
> Request Parameters
> 
> Responses
> 
> Send a Test Request

Here is the Zoom API endpoint to get all Chat Sessions for a user.

> **[Retrieve IM Chat Sessions - IM Chat - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/im-chat/imchatsessions)**
>
> Retrieve IM Chat sessions for a specified period of time. Note: This API only supports oauth2.
> Scopes: imchat:read, imchat:read:admin
> 
> Authorization
> 
> Re...

Let mw know if this helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![ilan](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ilan/32/1423_2.png) [@ilan](https://devforum.zoom.us/u/ilan)\
**Post date:** [August 22, 2019, 4:02pm UTC](https://devforum.zoom.us/t/retrieve-all-sessions-for-my-organization/5273/3 "2019-08-22T16:02:11Z")

</div>

I meant Zoom Meetings

What I want to achieve is to retrieve a list of all meetings user “X” joined to (Active directory user - SSO) in a specific set of dates, or to see the _current active_ sessions.

So i can run report, List all session John has attended this week, how long was each session.  
I dont want the entire session duration, just the time that John has spent on the session, is there a way to get it ?

If i look at this from developer point of view, its probably

1. Get all Meetings user John joined this week
2. Foreach session get John sign-in and sign-out time.

Thanks

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 22, 2019, 7:53pm UTC](https://devforum.zoom.us/t/retrieve-all-sessions-for-my-organization/5273/4 "2019-08-22T19:53:58Z")

</div>

Hey @ilan,

You can use our Retrieve Meeting Reports endpoint to accomplish this.

> **[Retrieve Meeting Reports - Reports - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/reports/reportmeetings)**
>
> Retrieve a past meeting report for a specified period of time. The time range for the report is limited to a month and the month should fall under the p...

You pass in a userID and can specify to and from dates.

To get the join\_time and leave\_time for a user in a meeting use this endpoint:

> **[Retrieve Meeting Participant Reports - Reports - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/reports/reportmeetingparticipants)**
>
> Retrieve a participant report for a past meeting.
> Scopes: report:read:admin
> 
> Authorization
> 
> Request Parameters
> 
> Responses
> 
> Send a Test Request

Let me know if this helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:36pm UTC](https://devforum.zoom.us/t/retrieve-all-sessions-for-my-organization/5273/5 "2020-08-21T18:36:46Z")

</div>

Closed on August 21, 2020, 6:36pm UTC


