ThomasKur / M365Documentation

Automatic Microsoft 365 Documentation to simplify the life of admins and consultants.
Other
300 stars 45 forks source link

Error while $doc = Get-M365Doc -Components Intune -ExcludeSections "MobileAppDetailed" #49

Closed morphi83 closed 2 months ago

morphi83 commented 3 months ago

Hi, I get the following Message with a Global Admin:

Used application does not have sufficiant permission to access: https://graph.microsoft.com/v1.0/organization In C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.3.0\Internal\Helper\Invoke-DocGraph.ps1:62 Zeichen:13

I think they changed something with MS Graph that its not working any more.

Greetings

amadeus916 commented 3 months ago

The same is happening to me. Have you found any solutions?

amadeus916 commented 2 months ago

@morphi83 This is fixed for me. I was using delegated permissions and need to connect using token instead of the default authentication.