The Open API specification for Synapse is now available for download!

Download Open API Spec

GET /projects/user/{principalId}

Get a paginated result that contains project headers and user activity (last access date) of the user specified by 'principalId'. The project list includes only those for which the user or a team they are on is explicitly granted access in the project's share settings. Other projects, including those visible by virtue of being Public, are not included. The list of projects is further filtered as follows:
If filter is ALL (the default): the projects that the user has READ access to by virtue of being included in the project's share settings personally or via a team in which they are a member, as described above.
If filter is CREATED: only projects that the user has created.
If filter is PARTICIPATED: only projects that the user has not created.
If filter is TEAM: the projects that the user has READ access by virtue of being included in the project's share settings via the team given by 'teamId' or, if no team ID is specified, then by any team which they are a member of.

Resource URL

https://repo-prod.prod.sagebase.org/repo/v1/projects/user/{principalId}

Resource URL Variables
{principalId} The ID of the user to list projects for
Parameters
teamId

optional

If the projectFilter is 'TEAM' then this is the ID of the team through which the returned projects are shared with 'principalId'.
filter

optional

see above
sort

optional

The optional column to sort on. Default sort by last activity
sortDirection

optional

The optional sort direction. Default sort descending
nextPageToken

optional

a token returned with the previous page of results
Resource Information
Authentication Required
Required OAuth Scopes view
HTTP Method GET
Request Object None
Response Object ProjectHeaderList
(application/json)