-
Notifications
You must be signed in to change notification settings - Fork 187
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
add/remove multiple users from group via one request #5783
Comments
@janackermann For adding multiple members this is already implemented since quite a while. For removing multiple members MS Graph doesn't make any specification IIRC. Also I am unsure if this is really worth it. Yeah, you'd save a couple of roundtrips between web and graph, but OTOH the user management APIs are not that performance critical. It's not that we constantly add and remove groupmembers in batches. |
@janackermann BTW, please note that there is a limit of how many members you can add in one batch. (AFAIK it defaults to 20) |
@rhafer Having a consistency for adding/removing multiple users from groups would be nice anyways. |
It actually is in the spec https://github.com/owncloud/libre-graph-api/blob/main/api/openapi-spec/v1.0.yaml#L2669 |
@rhafer oh that's weird tho, I always have a look in the swagger UI or here https://owncloud.dev/apis/http/graph/groups instead of some yaml files. |
Yeah, I get that. However there currently does not seem to be any endpoint for deleting multiple members in MS Graph. I also have no idea how a deletion of multiple members is correctly represented in an ODATA PATCH request currently. |
Just asking, what happens when a single group fails in the request? We have the API promise that we don't do "bad things" like doing non-atomic operations which could fail silently. |
We currently only allow adding multiple users to a single group in one request. In the LDAP backend that boils down to a single LDAP request on the group. That request either succeeds completely (all members added) or fails (no member added)
I think at least for the "add multiple user to a group at once" operation this promise is ful-filled. Somehow I think adding support for https://learn.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http#example-2-add-multiple-members-to-a-group-in-a-single-request to libregraph was a bad idea. Especially as it lacks the counter part of being able to remove users from a group in batch. And (as you might have noticed 😄 ) I am really hesitant to invent something libregraph specific here. |
I guess it's not going to be fixed. closed as not planned |
Describe the solution you'd like
To keep the backend request for web limited, we need the possibility to add/remove multiple users from a group via one request
MS Graph also provides an example for this
https://learn.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http
The text was updated successfully, but these errors were encountered: