Skip to main content
GET
/
permissions
/
datasets
/
{username}
/
{namespace}
/
{datasetName}
/
shares
List users with access to a dataset
curl --request GET \
  --url https://api.datalinks.com/api/v1/permissions/datasets/{username}/{namespace}/{datasetName}/shares \
  --header 'Authorization: Bearer <token>'
[
  {
    "username": "alice",
    "role": "editor"
  }
]

Authorizations

Authorization
string
header
required

Use a Bearer token for authentication. Submit the token using the Authorization header: Authorization: Bearer <token>.

Path Parameters

username
string
required

The username associated with the request.

namespace
string
required

Namespace for the dataset.

datasetName
string
required

Name of the dataset.

Response

Returns the per-user grants on the resource.

username
string
required

Username of the user that has access.

Example:

"alice"

role
enum<string>
required

Access level granted to the user.

Available options:
viewer,
editor
Example:

"editor"