---
title: "List dataset shares"
method: GET
path: "/api/dataset/{datasetId}/shares"
tags: ["Dataset Management"]
---

# List dataset shares

`GET /api/dataset/{datasetId}/shares`

Returns all user and group permission assignments for the specified dataset.

## Path parameters

- `datasetId` string, required

## Response `200`

Returns dataset permission assignments

- ResourcePermissionSetAssignmentModel[]
  - `id` string — The ID of the share.
  - `permissionSetId` string — The ID of the permission set that is shared.
  - `sharedWithUser` UserEntityModel — A user entity with basic identity information.
    - `id` string, required — The unique identifier of the user or group.
    - `userName` string, nullable, required — The display name of the user or group.
    - `firstName` string, nullable — The user's first name.
    - `lastName` string, nullable — The user's last name.
  - `sharedWithGroup` GroupEntityModel — A group entity that can be assigned permissions on resources.
    - `id` string, required — The unique identifier of the user or group.
    - `userName` string, nullable, required — The display name of the user or group.
    - `context` 'None' | 'Google' | 'Okta' | 'Azure' | 'OIDC' | 'Keycloak', required — Enum representing the unique context that a Solar.EF.Models.Group belongs to. For example, Organizations may use multiple SSO providers for authentication, and <see cref="T:Solar.EF.Models.Group">Groups</see> are only unique by name within a particular context.
  - `shareableEntityType` 'User' | 'Group' — <p>Possible values:</p> <ul> <li><b>User</b>: A user</li> <li><b>Group</b>: A group</li> </ul>
  - `resourceId` string — The ID of the dataset that is shared.

## Other responses

- `404` — Dataset not found

---

[API](https://skmtc.net/tonic/apis/textual-api.md) · [All operations](https://skmtc.net/tonic/apis/textual-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tonic/textual-api/revisions/41da8739a690/schema)
