-
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 memberOf to /users endpoint and members to /groups endpoint #3925
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
8f10bc4
to
adbf879
Compare
💥 Acceptance test Core-API-Tests-ocis-storage-8 failed. Further test are cancelled... |
8f2d909
to
388cfc5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor things. Looks good to me otherwise.
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
…oint Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
9de4f10
to
c4f7a36
Compare
Kudos, SonarCloud Quality Gate passed! |
@dragonchaser I have built an ocis with the latest master and run it:
But my attempts to use the new member API queries are not successful:
But when I try to get the group(s) along with the members:
I just get a response with the group display names. Or query a single group:
I just get a response with the group display name. Am I missing something? |
@phil-davis could not reproduce $> curl -k $ curl -k 'https://localhost:9200/graph/v1.0/groups/509a9dcd-bb37-4f4f-a01a-19dca27d9cfa?$expand=members' -u admin:admin|jq
{
"displayName": "users",
"id": "509a9dcd-bb37-4f4f-a01a-19dca27d9cfa",
"members": [
{
"displayName": "Albert Einstein",
"id": "4c510ada-c86b-4815-8820-42cdf82c3d51",
"mail": "[email protected]",
"onPremisesSamAccountName": "einstein"
},
{
"displayName": "Marie Skłodowska Curie",
"id": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c",
"mail": "[email protected]",
"onPremisesSamAccountName": "marie"
},
{
"displayName": "Richard Phillips Feynman",
"id": "932b4540-8d16-481e-8ef4-588e4b6b151c",
"mail": "[email protected]",
"onPremisesSamAccountName": "richard"
},
{
"displayName": "Maurice Moss",
"id": "058bff95-6708-4fe5-91e4-9ea3d377588b",
"mail": "[email protected]",
"onPremisesSamAccountName": "moss"
},
{
"displayName": "Admin",
"id": "some-admin-user-id-0000-000000000000",
"mail": "[email protected]",
"onPremisesSamAccountName": "admin"
}
]
} Can you run |
@dragonchaser I pulled current master and rebuilt my oCIS:
And I still have the same problem. |
I added another user to group "g42". Now all the
Probably I already had user |
Confusing, there have been no changes to these structures, the change just adds LDAP queries to the code. |
It WFM now, so we can't do anything more really to investigate. |
This PR adds a members slice to the
/groups
endpoint anda members slice to the
/users
endpoint.refs #3837