#849  Get repository/project owner via api?
Closed
Andreas Wachter opened 2 years ago

Is there a way to get the owner of a repository/project via the API?

If not, is there any way to implement that?

Robin Shen commented 2 years ago

There might exist multiple owners for a project. To get them, get all user authorizations objects associated with a project: https://code.onedev.io/help/api/io.onedev.server.rest.ProjectResource/getUserAuthorizations

All those with role_id set to 1 (owner role in OneDev) are owners of the project.

Andreas Wachter commented 2 years ago

that helped. thanks

Andreas Wachter changed state to 'Closed' 2 years ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#849
Please wait...
Page is in error, reload to recover