ThomasKur / M365Documentation

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

Used application does not have sufficiant permission to access: https://graph.microsoft.com/v1.0/organization #22

Closed sokoloffmaks closed 2 years ago

sokoloffmaks commented 2 years ago

hi , getting this error Connect-M365Doc $doc = Get-M365Doc -Components azuread Used application does not have sufficiant permission to access: https://graph.microsoft.com/v1.0/organization At C:\Program Files\WindowsPowerShell\Modules\M365Documentation\3.1.2\Internal\Helper\Invoke-DocGraph.ps1:51 char:13

all permissions to that application have been provided

sokoloffmaks commented 2 years ago

image

eogmau commented 2 years ago

See this https://github.com/ThomasKur/M365Documentation/issues/2#issuecomment-874760429

sokoloffmaks commented 2 years ago

thank you

RogierDittner commented 2 years ago

The trick is to grand admin consent when logging on the firs time logon. This makes the script able reach all info.