mirror of
https://github.com/Set-OutlookSignatures/Set-OutlookSignatures.git
synced 2026-04-26 18:55:53 +03:00
[GH-ISSUE #69] GraphGetUserTransitiveMemberOf is not paging aware #20
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Set-OutlookSignatures-Set-OutlookSignatures#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bieberium on GitHub (Feb 16, 2023).
Original GitHub issue: https://github.com/Set-OutlookSignatures/Set-OutlookSignatures/issues/69
Hi, thanks for your effort on this tool!
We are using your tool and came across an isse with the GraphOnly option: If a user has enough groups so that the API response is paged, only the initial batch is fetched. This can be fixed by adding a while loop like this into the function
$InvokeRestMethod = Invoke-RestMethod @requestBody$x = $InvokeRestMethod.valuewhile ($null -ne $($InvokeRestMethod."@odata.nextLink")) {$requestBody = @{Method = 'Get'Uri = $($InvokeRestMethod."@odata.nextLink")Headers = $script:authorizationHeaderContentType = 'Application/Json; charset=utf-8'}$InvokeRestMethod = Invoke-RestMethod @requestBody#$x.count$x += $InvokeRestMethod.value}`
@GruberMarkus commented on GitHub (Feb 16, 2023):
Hi @bieberium,
thank you for bringing up this issue.
The problem has already been identified and solved. The solution will be part of release v4.0.0.