Skip to content

Feature Request: Return permissions from My Data API #12619

Description

@vera

Overview of the Feature Request

Enhance the GET api/mydata/retrieve API response so that each returned dataset includes a permissions object describing the effective permissions available through the user’s assigned roles.

Currently, the API returns role names as strings.

Image

API clients must understand Dataverse role definitions and duplicate backend logic to determine what those roles allow the user to do. This request proposes exposing the resolved permissions directly in the response, so clients can use the permission information without reimplementing Dataverse’s role-to-permission mapping.

What kind of user is the feature intended for?
(Example users roles: API User, Curator, Depositor, Guest, Superuser, Sysadmin)

API Users, SPA?

What inspired the request?

The current response includes the user’s roles for each returned dataset, but only as role names. Since roles are configurable in Dataverse, API clients cannot reliably infer permissions from role names alone unless they duplicate the internal mapping from role names to permissions. This creates unnecessary complexity.

What existing behavior do you want changed?

For each dataset returned by GET api/mydata/retrieve, keep the existing role information but add a structured permissions object that lists the permissions granted to the user for that dataset (same format as userPermissions API).

Image

Any open or closed issues related to this feature request?

None as far as I know.

Are you thinking about creating a pull request for this feature?
Help is always welcome, is this feature something you or your organization plan to implement?

Yes, we are open to that

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions