MSIdentityTools icon indicating copy to clipboard operation
MSIdentityTools copied to clipboard

Export-MsIdAppConsentGrantReport

Open ddonders opened this issue 1 year ago • 2 comments

Describe the bug

When running Export-MsIdAppConsentGrantReport there is the following error returned: PropertyNotFoundException: The property 'AdditionalProperties' cannot be found on this object. Verify that the property exists.

To Reproduce

Just ran the command.

Expected behavior

No errors.

Screenshots

image

Environment (please complete the following information)

  • Operating System: Windows 11
  • PowerShell Version: PowerShell 7.2

Additional context

NA

ddonders avatar Feb 05 '24 08:02 ddonders

@merill

Same issue here. When running the command with the '-Verbose' parameter, numerous errors flood the output:

Get-MgDirectoryObjectById_GetExpanded: Method not found: 'System.Net.Http.HttpClient
Microsoft.Graph.PowerShell.Authentication.Helpers.HttpHelpers.GetGraphHttpClient(System.Management.Automation.InvocationInfo,
Microsoft.Graph.PowerShell.Authentication.IAuthContext)'.
PropertyNotFoundException: The property 'AdditionalProperties' cannot be found on this object. Verify that the property exists.

With PowerShell 7.4.1 on Windows 11

jasperbaes avatar Feb 23 '24 14:02 jasperbaes

I successfully tested this again on an Azure VM using PowerShell 7.4.1 without encountering any errors. Ensure that you first run "Install-Module Microsoft.Graph". However, I'm still experiencing issues on my host machine.

Additionally, the pivot tables in the Excel file loaded correctly only after uploading to SharePoint, not when opening from a local folder.

jasperbaes avatar Apr 11 '24 09:04 jasperbaes

Thanks for testing and confirming it works.

merill avatar Jul 18 '24 05:07 merill