You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding the same user as multiple members in a single request results in listing the same user twice in the group #5855
user Brian should be added once to a group
[
{
"accountEnabled": true,
"displayName": "Brian Murphy",
"givenName": "",
"id": "367b7965-b0c2-4ca6-845f-b65910677405",
"mail": "[email protected]",
"onPremisesSamAccountName": "Brian",
"surname": "Brian",
"userType": "Member"
}
]
Did a bit of testing around this, and the only way I could have a similar problem was with doing a PATCH request on the group with the members. I did not get the same problem as you did. I am running with an openldap backend and that actually returns an error because of the ldap modify request it is given, and that having duplicates. So this bug is actually in the idm and that it allows such a request.
Since the idm is currently of lower priority, I've added the "low priority bug" label.
@amrita-shrestha Yes the issue is still there (it was githubs magic being overly optimistic closing this bug as it was mentioned as "partially fixed"in the PR 😢 ). Sorry, I didn't notice that.
That being said. We need to fix this in libregraph/idm. But that is still of somewhat lower priority.
Activity
Excds commentedon Mar 21, 2023
Did a bit of testing around this, and the only way I could have a similar problem was with doing a PATCH request on the group with the members. I did not get the same problem as you did. I am running with an openldap backend and that actually returns an error because of the ldap modify request it is given, and that having duplicates. So this bug is actually in the idm and that it allows such a request.
Since the idm is currently of lower priority, I've added the "low priority bug" label.
amrita-shrestha commentedon Mar 21, 2023
@Excds SORRY i added the wrong method its
PATCHmethodrhafer commentedon Mar 21, 2023
@amrita-shrestha The URL is also wrong. It should be 'https://localhost:9200/graph/v1.0/groups/7a20f238-8a22-4458-902d-47674c317e5f` (without the
/member/$ref).@Excds is still right though. This is a bug in the
idmservice which does not happen when using a proper LDAP service.amrita-shrestha commentedon Mar 30, 2023
@rhafer in my view this issue has not been resolved
still HTTP status code
204and get the user listed twice in a grouprhafer commentedon Mar 30, 2023
@amrita-shrestha Yes the issue is still there (it was githubs magic being overly optimistic closing this bug as it was mentioned as "partially fixed"in the PR 😢 ). Sorry, I didn't notice that.
That being said. We need to fix this in libregraph/idm. But that is still of somewhat lower priority.