-
Previous Value Current Value [API] Project group management as Project Owner
[API] Able to manage group authorizations as project owner
-
Name Previous Value Current Value Type
Question
Improvement
-
OneDev
changed state to 'Closed' 11 months ago
Previous Value Current Value Open
Closed
-
State changed as code fixing the issue is committed (72169095)
-
OneDev
changed state to 'Released' 11 months ago
Previous Value Current Value Closed
Released
-
State changed as build OD-5877 is successful
-
@maregg91 build OD-5877 added api to get group id:
https://code.onedev.io/~help/api/io.onedev.server.rest.resource.GroupResource/getId
Also users can now create/delete/view group authorizations for owned projects.
-
Many thanks for the super-fast help! It works perfectly :-)
| Type |
Improvement
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Issue Votes (0)
Hi,
my question is similar to the one asked in OD-2209. I would also like to manage my projects via the API and have all user and group names specified in a configuration file. Unfortunately, I can't find a function for groups that is equivalent to the “Get Id” for users.
Also, it doesn't seem to be possible to manage the group permissions as Project Owner at the moment. I can access “~api/projects/id/user-authorizations”, but not “~api/projects/id/group-authorizations”, while both are accessible via the frontend. The same is true for setting authorizations. While able to create a new user permission with "~api/user-authorizations", "~api/group-authorizations" results in Error 403 - Not authorized.
Is there something I'm missing or doing wrong?
Thank you in advance, Marius