Dear Sage Bionetworks,
When viewing my list of projects through the web UI, there is an option to see all projects that are shared with a given team that I am a part of: "Projects" -> "By Team" ->
Is there a way to retrieve this listing programmatically through the R or Python API? I looked through the docs on Teams (https://docs.synapse.org/articles/teams.html) and Queries (https://docs.synapse.org/articles/annotation_and_query.html#queries) but could only find examples of listing files in a given project and querying by annotations. Is there a similar SQL-like query to identify all projects shared with a given Team ID? What would that look like?
On a related note, is there a similar query to retrieve projects that are "Shared directly with me"?
Thank you,
-Artem
Created by Artem Sokolov ArtemSokolov Fantastic! Works like a charm. Thanks so much, @larssono . Hope all is well!
Cheers Artem:
Good to hear from you. There is no convenience function for it in R/Python but you can use a [rest](https://docs.synapse.org/rest/GET/projects/type/team/teamId.html) call:
```
syn.restGET('/projects/TEAM_PROJECTS/team/3320424')
```
where the last integer is replaced by the team id.
Drop files to upload
Programmatically listing all projects shared with a given team page is loading…