M365Documentation icon indicating copy to clipboard operation
M365Documentation copied to clipboard

Get-GroupInfo - Cannot bind argument - Issue

Open SveinungK opened this issue 1 year ago • 2 comments

Hello, When I attempt to run the report I recieve an error for Get-GroupInfo.

This is the following error:

Get-GroupInfo : Cannot bind argument to parameter 'Groups' because it is null.                                         
At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.3.0\Internal\Collector\Intune\Get-MobileApp.ps1:53    char:50                                                                                                                 
+         $DocSec2.Objects = Get-GroupInfo -Groups $AppGroups                                                           
+                                                    ~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Get-GroupInfo], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-GroupInfo

I hope there is an easy fix for this issue.

The command used when receving the error was: $doc = Get-M365Doc -Components Intune -IncludeSections MobileApp

SveinungK avatar May 07 '24 11:05 SveinungK

I believe this issue is relevant to the report. I'm spesficly after the App Assignments in my enviornment, but the result is not correct. There is multiple groups assigned on some apps, so when I checked there was only one group listed in the .csv

SveinungK avatar May 07 '24 14:05 SveinungK

I could not reproduce this error. Can you please retry.

ThomasKur avatar Sep 30 '25 13:09 ThomasKur