jhoneill / MsftGraph

A PowerShell module for interacting with the Microsoft Graph API for Directory, OneNote, OneDrive, Outlook, Planner, Teams and Sharepoint in Office 365 or consumer versions
MIT License
93 stars 12 forks source link

authorizationInfo error #9

Closed jd0000 closed 2 years ago

jd0000 commented 2 years ago

Started receiving error about "authorizationInfo" TerminatingError(New-Object): "The member "authorizationInfo" was not found for the specified .NET object." New-Object : The member "authorizationInfo" was not found for the specified .NET object. At C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.PlusPlus\1.5.1\Users.ps1:19 char:29

Temp fix was: Edited Users.ps1 line 18 to: $null = $r.manager.remove('@odata.type'),$r.manager.remove('@odata.id'),$r.manager.remove('authorizationInfo')

jhoneill commented 2 years ago

Sounds like a property has been removed from an object without realising doing so was a breaking change. I'll investigate when I get a moment. Thanks for reporting.