[GH-ISSUE #820] FEATURE REQUEST: Pagination on Mailboxes #410

Closed
opened 2026-03-02 12:42:01 +03:00 by kerem · 1 comment
Owner

Originally created by @D49FVP on GitHub (Mar 11, 2022).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/820

Is your feature request related to a problem? Please describe.
Yes. Listing mailboxes for a large tenant (341 mail, 273 shared) the PowerShell in the Azure function hit's the default 5 min timeout.

Describe the solution you'd like
Some sort of pagination with a cache.

Describe alternatives you've considered
Can use the users list for a tenant but this does not show if a mailbox is shared.

Additional context
2022-03-11T12:38:58.440 [Error] Timeout value of 00:05:00 exceeded by function 'Functions.ListMailboxes' (Id: '92c96180-c94f-43dc-ab91-28fd132303c4'). Initiating cancellation.
2022-03-11T12:38:58.528 [Error] Executed 'Functions.ListMailboxes' (Failed, Id=92c96180-c94f-43dc-ab91-28fd132303c4, Duration=300092ms)Timeout value of 00:05:00 was exceeded by function: Functions.ListMailboxes

Originally created by @D49FVP on GitHub (Mar 11, 2022). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/820 **Is your feature request related to a problem? Please describe.** Yes. Listing mailboxes for a large tenant (341 mail, 273 shared) the PowerShell in the Azure function hit's the default 5 min timeout. **Describe the solution you'd like** Some sort of pagination with a cache. **Describe alternatives you've considered** Can use the users list for a tenant but this does not show if a mailbox is shared. **Additional context** 2022-03-11T12:38:58.440 [Error] Timeout value of 00:05:00 exceeded by function 'Functions.ListMailboxes' (Id: '92c96180-c94f-43dc-ab91-28fd132303c4'). Initiating cancellation. 2022-03-11T12:38:58.528 [Error] Executed 'Functions.ListMailboxes' (Failed, Id=92c96180-c94f-43dc-ab91-28fd132303c4, Duration=300092ms)Timeout value of 00:05:00 was exceeded by function: Functions.ListMailboxes
kerem 2026-03-02 12:42:01 +03:00
Author
Owner

@KelvinTegelaar commented on GitHub (Mar 11, 2022):

Never look at these logs if you are not a dev; they'll only serve to confuse you. This issue is not related to that timeout at all as that's impossible'. All queries get ended after 45 seconds. It most likely stems from another problem.

Have you tried performing an exchange access check on the tenant you are trying? I've just listed a 2500 mailboxes list and it continues in 3 seconds :)

<!-- gh-comment-id:1065084042 --> @KelvinTegelaar commented on GitHub (Mar 11, 2022): Never look at these logs if you are not a dev; they'll only serve to confuse you. This issue is not related to that timeout at all as that's impossible'. All queries get ended after 45 seconds. It most likely stems from another problem. Have you tried performing an exchange access check on the tenant you are trying? I've just listed a 2500 mailboxes list and it continues in 3 seconds :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#410
No description provided.