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

Local O365: Groups and Teams endpoints needs pagination #2417

Closed
joaop221 opened this issue Dec 5, 2023 · 5 comments · Fixed by #2450 or #2451
Closed

Local O365: Groups and Teams endpoints needs pagination #2417

joaop221 opened this issue Dec 5, 2023 · 5 comments · Fixed by #2450 or #2451
Assignees
Labels
Issue type - enhancement request New feature being requested outside of original scope. Plugin - local_o365 Status - PR ready / pending release Dev is done and PR ready. Will be included in the next release.
Milestone

Comments

@joaop221
Copy link

joaop221 commented Dec 5, 2023

Some Azure user's fields (e.g.: Groups and Teams) has an one to N relationship, so them need to be called with pagination.

Graph Docs:

Non paginated API calls:

Implemented API calls with pagination:

The proposal is add support to query user info with there pagination.

@douglasfernandesjr
Copy link

Great fix! In real world organizations user have a lot of groups. This gonna help me a lot

@weilai-irl
Copy link
Collaborator

Hi @joaop221

Thank you so much for making the PR. I have been planning to move all Graph API calls with pagination to a unified function that handles the skip tokens for very long time, but didn't find a good chance, until I see your PRs. I made a few more changes on top of your PR and moved all calls that have pagination that I know of to use the paginatedapicall() function that you created. There has been some changes to the function itself too to allow it to support a few more different use cases. I have tested all affected function briefly and they all work fine. I'll request a formal system test in this change before it's included in the next release.

Thank you again for your valuable contribution.

Regards,
Lai

@weilai-irl weilai-irl self-assigned this Jan 26, 2024
@joaop221
Copy link
Author

Hi @weilai-irl.

Is there a new due date for 2024-01 milestone's features?

@weilai-irl
Copy link
Collaborator

Hi @joaop221

We are aiming for the week of 11th of March if testing goes smoothly; otherwise it will be the week of 8th of April. I'm away for the three weeks in between.

Sorry for the delay.

Regards,
Lai

@weilai-irl
Copy link
Collaborator

Hi @joaop221

Changes in this issue are included in the releases from today.

Thank you very much for reporting the issue and providing the solution.

Regards,
Lai

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