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

Be able to sort users by Roles #330

Closed
ManonGros opened this issue Mar 19, 2021 · 8 comments
Closed

Be able to sort users by Roles #330

ManonGros opened this issue Mar 19, 2021 · 8 comments
Assignees

Comments

@ManonGros
Copy link
Contributor

I don't know if this is a request for this repository.

I would love to be able to sort users by role here: https://registry.gbif.org/user
Something like, "show me all the GRSciColl editors".

Ideally, it would also be nice to be able to search per scope: "who can edit that dataset?" but if I could see the editor roles, it would be great!

@MortenHofft MortenHofft transferred this issue from gbif/registry-console Mar 19, 2021
@MortenHofft
Copy link
Member

I've moved this from registry-console at it requires backend changes to implement. When/if this is implemented, then please create an issue in the registry-console.

@fmendezh
Copy link
Contributor

admin/user/search not supports filtering by

  1. role : can be specified multiple times role=GRSCICOLL_ADMIN&role=VOCABULARY_EDITOR
  2. editorRightsOn: can be specified multiples with UUIDs (keys to datasets, organizations, etc) editorRightsOn=7ce8aef0-9e92-11dc-8738-b8a03c50a862

@MortenHofft
Copy link
Member

Currently editorRightsOn=91ed9272-492c-4d4d-8070-f9dd24c5f9f3 will give zero results because no one has that dataset explicitly in their scope.
It would be more useful if it returned users who could edit it. in this case e.g. anyone from with norwegian node scope.

@ManonGros
Copy link
Contributor Author

I agree with you @MortenHofft, I would want to get all the users who can edit a given entry (including anyone who has permission at the organization or node level).
@fmendezh would that be possible?

@ManonGros ManonGros reopened this May 20, 2021
@ManonGros
Copy link
Contributor Author

ManonGros commented Jul 15, 2022

@fmendezh is there a way I could get the GRSciColl mediators based on the country they have in their permission scope?
role=GRSCICOLL_MEDIATOR&limit=100&editorRightsOn=US returns a Response [400]

@ManonGros
Copy link
Contributor Author

Right now, to keep track of who has permissions for which country, I have to keep an excel spreadsheet.

@marcos-lg
Copy link
Contributor

marcos-lg commented Jul 15, 2022

I had added the countryRightsOn param some time ago:

https://api.gbif.org/v1/admin/user/search?countryRightsOn=US&role=GRSCICOLL_MEDIATOR

Is that what you are looking for @ManonGros ?

There is also the namespaceRightsOn param.

@ManonGros
Copy link
Contributor Author

Yes! Thank you Marcos! This is what I was looking for.

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

No branches or pull requests

4 participants