[API] Able to manage group authorizations as project owner (OD-2261)
maregg91 opened 12 months ago

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

  • Robin Shen changed title 11 months ago
    Previous Value Current Value
    [API] Project group management as Project Owner
    [API] Able to manage group authorizations as project owner
  • Robin Shen changed fields 11 months ago
    Name Previous Value Current Value
    Type
    Question
    Improvement
  • OneDev changed state to 'Closed' 11 months ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 11 months ago

    State changed as code fixing the issue is committed (72169095)

  • OneDev changed state to 'Released' 11 months ago
    Previous Value Current Value
    Closed
    Released
  • OneDev commented 11 months ago

    State changed as build OD-5877 is successful

  • Robin Shen commented 11 months ago

    @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.

  • maregg91 commented 11 months ago

    Many thanks for the super-fast help! It works perfectly :-)

issue 1/1
Type
Improvement
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2261
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover