# Connection between a Client user and a Shared Playlist

**URL:** <https://community.shotgridsoftware.com/t/connection-between-a-client-user-and-a-shared-playlist/12396>\
**Category:** Flow Production Tracking\
**Tags:** playlist, client-review-site, client, rest-api\
**Created:** [May 13, 2021, 3:12pm UTC](https://community.shotgridsoftware.com/t/connection-between-a-client-user-and-a-shared-playlist/12396 "2021-05-13T15:12:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dermonter](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dermonter](https://community.shotgridsoftware.com/u/dermonter)\
**Post date:** [May 13, 2021, 3:12pm UTC](https://community.shotgridsoftware.com/t/connection-between-a-client-user-and-a-shared-playlist/12396/1 "2021-05-13T15:12:24Z")

</div>

Hello, is there a way to get a list of Client users that a Playlist is shared with using the Shotgun REST API?

---

<div class="post-metadata">

**Author:** ![kevinsallee](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/kevinsallee/32/7074_2.png) [@kevinsallee](https://community.shotgridsoftware.com/u/kevinsallee)\
**Post date:** [May 13, 2021, 9:48pm UTC](https://community.shotgridsoftware.com/t/connection-between-a-client-user-and-a-shared-playlist/12396/2 "2021-05-13T21:48:05Z")

</div>

You can probably use the search or summarize endpoints.  
If you were using the search endpoint, you would POST to:  
`/entity/PlaylistShare/_search`

your filters would be: `[["user", "type_is", "ClientUser"]]`  
and the fields you want to get are `[user.ClientUser.name]`.  
You can then make a set out of your list of results.

Summarize would be roughly the same, your filters are the same  
your summary\_fields would be `[{'field':'user.ClientUser.name', 'type':'count'}]`  
and your grouping would be `[{'field': 'user.ClientUser.name', 'type': 'exact', 'direction': 'asc'}]`

Summarize should be a faster query and has the advantage of telling you how many playlists were shared with a ClientUser.
