Skip to content
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

Restrict searchable users issue #264

Open
drakomi6 opened this issue Jun 17, 2024 · 5 comments
Open

Restrict searchable users issue #264

drakomi6 opened this issue Jun 17, 2024 · 5 comments
Assignees

Comments

@drakomi6
Copy link

I have been trying to test the new 'Restrict searchable users' functionality however when I add the group in question it does pull back some entra groups (suggesting entracp is still functioning) but not any of the entra accounts in the group in question. I'm not sure if part of the issue would be the scale of the group having 4000+ members. I have not been able to see any overt errors in the logs and it just shows Got 0 users/groups in 187ms entra results for query. It does still pull back on premise AD accounts as expected when the restriction is applied. If i remove the restriction I can find all accounts again as normal.

For reference in our schema all users have 2 accounts an on premise and an entra; we were hoping with the new feature we could restrict so that only the users on premise ad accounts would show and only relevant entra accounts (guest accounts)

@drakomi6
Copy link
Author

drakomi6 commented Jun 17, 2024

Also to add I tested with a different group that has about 5 users and that does seem to restrict as expected

@Yvand
Copy link
Owner

Yvand commented Jun 27, 2024

@drakomi6 sorry for my late reply.
I admit I did not try this scenario with so many users in a group, I will test your scenario and come back to you, but it will take me time, I won't be able to get back to you soon, but I will.

@Yvand Yvand self-assigned this Jun 27, 2024
@Yvand Yvand added the Issue label Jun 27, 2024
@drakomi6
Copy link
Author

drakomi6 commented Jun 27, 2024 via email

@Yvand Yvand added the keep label Jul 4, 2024
@Yvand
Copy link
Owner

Yvand commented Jul 10, 2024

@drakomi6 I confirm there is an issue with the current implementation:

EntraCP uses endpoint /groups/{id}/members to return the users members of the groups specified in the textbox.
But it returns 100 members per page, EntraCP only asks for the 1st page.
So any user not returned by the 1st page will be filtered out.

I already tested a quick and dirty fix which is to get 999 members per page (maximum supported), but I will make sure I get all the pages, to really get all the members.

You can see the progress in branch https://github.com/Yvand/EntraCP/tree/fix-missing-group-members

@drakomi6
Copy link
Author

drakomi6 commented Jul 23, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants