Add endpoints for managing group membership#23
Add endpoints for managing group membership#23rhafer merged 1 commit intoowncloud:mainfrom rhafer:groups
Conversation
I am having some troube with adding the definition for being able to add multiple group members at once (using the above URL). According to the MS Docs multiple members can be added with PATCH to the above URL and a body containing something like this: We however already have PATCH operation defined for that URL using a different kind of body (basically for updating other group related attributes. @micbar Any hints on how to solve this? (BTW, this shouldn't stop of from merging this PR. We can work it out later) |
|
shouldn't we be able to create a key |
@micbar hm, true. That should work. For some reason I thought the body for the PATCH on I still think the API for managing group memberships as defined in ms graph is not exactly nice. I am trying to follow it anyway here.
Not really directory objects, but strings/uris referencing directory objects. |
@rhafer something like: https://swagger.io/docs/specification/data-models/data-types/#array Also, mind this restriction by the msgraph spec:
The key would, obviously, be located in the |
Yeah that's what I did. :-)
Yeah. Though that limit is not something I can express in this SPEC, is it? We might think about adding such a limit to the actual graph API implementation at some point though. |
|
yes it can be done within the spec: https://swagger.io/docs/specification/2-0/describing-parameters/
- in: query
name: color
required: false
type: array
minItems: 1
maxItems: 5
uniqueItems: true
items:
type: string
enum: [black, white, gray, red, pink, orange, yellow, green, blue, purple, brown] |
|
@rhafer oh sorry, those docs are for v2. For v3: https://swagger.io/docs/specification/data-models/data-types/ |
- add a group member via
POST /groups/{id}/members/$ref
- delete a group member via
DELETE /groups/{group-id}/members/{directory-object-id}/$ref
- to allow adding multiple members add the "members@odata.bind" property
to groups
|
Ok, thanks. I've added those limits to the spec. It doesn't seem to have any effect on the generated go code for the client. But the limit itself needs to be implemented server side anyway. |

Uh oh!
There was an error while loading. Please reload this page.