Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dataset Role Management API #6290

Closed
flaviofrancisco opened this issue Oct 18, 2019 · 3 comments · Fixed by #6622
Closed

Dataset Role Management API #6290

flaviofrancisco opened this issue Oct 18, 2019 · 3 comments · Fixed by #6622

Comments

@flaviofrancisco
Copy link

As Dataverse user, I would like to assign a specific role/user to a specific dataset using the Native Api. As we can do with Dataverse. I didn't found it in the documentation.

Thanks in advance;
Flavio.

@pdurbin
Copy link
Member

pdurbin commented Oct 18, 2019

@flaviofrancisco unfortunately, it's not possible to assign roles to datasets using any Dataverse API. In 5fa140a I stubbed out some code to allow this but never completed it. If someone wants to make a code contribution to finish this off, please get in touch! 😄

It is possible to list role assignments at the dataset level: http://guides.dataverse.org/en/4.17/api/native-api.html#list-role-assignments-for-a-dataset

It is also possible to assign roles at the parent dataverse level (these docs could be way better): http://guides.dataverse.org/en/4.17/api/native-api.html#assign-a-new-role-on-a-dataverse

@pdurbin pdurbin added Help Wanted: Code Mentor: pdurbin hacktoberfest It's Hacktoberfest! https://groups.google.com/g/dataverse-community/c/n_Nn_T2yA-w/m/BcoXO4tEAQAJ labels Oct 18, 2019
@pdurbin pdurbin removed the hacktoberfest It's Hacktoberfest! https://groups.google.com/g/dataverse-community/c/n_Nn_T2yA-w/m/BcoXO4tEAQAJ label Nov 22, 2019
@djbrooke djbrooke self-assigned this Jan 15, 2020
@djbrooke
Copy link
Contributor

  • Will use same business logic as the UI
  • We hope this is already in the command infrastructure
  • Integration Tests should be added

@djbrooke djbrooke removed their assignment Jan 15, 2020
@djbrooke djbrooke changed the title How can I assign an specific role/user to a specific dataset in Dataverse using the Native Api? Dataset Role Management API Jan 15, 2020
@sekmiller sekmiller self-assigned this Feb 4, 2020
sekmiller added a commit that referenced this issue Feb 5, 2020
sekmiller added a commit that referenced this issue Feb 6, 2020
@sekmiller sekmiller removed their assignment Feb 6, 2020
sekmiller added a commit that referenced this issue Feb 10, 2020
sekmiller added a commit that referenced this issue Feb 10, 2020
sekmiller added a commit that referenced this issue Feb 11, 2020
@djbrooke
Copy link
Contributor

Hi @flaviofrancisco -- this has been merged and will be included in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants