pnp / pnpassessment

Microsoft 365 SharePoint Assessment tool enabling various deprecation and adoption scenarios
https://aka.ms/microsoft365assessmenttool
MIT License
28 stars 14 forks source link

Problem when running Assessment - Assessment job not started due to error: Microsoft Graph service exception #18

Closed PRusakPL closed 1 year ago

PRusakPL commented 1 year ago

Hi,

After announcement about deprecating SP2013 Workflows - I wanted to use Assessment tool to run it in Workflow mode.

I receive following error: Assessment job not started due to error: Microsoft Graph service exception image

I tried to use either Interactive or Device --authmode I am loging in with account which has SharePoint Admin role (so should have Full Control rights to all SP Site Collections) In our tenant we have configured "PnP Management Shell" application - with Global Admin consent (see below needed permissions) image

How I can investigate more details about potential problem, or maybe you can already know what problem I might have? Any tips / hints would be really appreciated. Thanks in advance

ValleRLess commented 1 year ago

Were you able to get this resolved. I'm also getting the same error message. Thanks in advanced.

jansenbe commented 1 year ago

@PRusakPL , @ValleRLess : please see https://pnp.github.io/pnpassessment/workflow/requirements.html#permission-requirements for the needed permissions. The assessment tool requires both Graph and SharePoint Online permissions.

PRusakPL commented 1 year ago

I managed to solve the issue by creating dedicated Azure App registration and assigning appropriate permissions (SharePoint Online and Graph) Initially I understood (reading below paragraph from documentation) that tool can work without custom App Registration - with default "PnP Management Shell" application (but it cannot - as required permissions are missing for this app if you installed this for PnP Powershell) image

In the end IMHO this paragraph should disappear from documentation - as this might confuse others too.

jansenbe commented 1 year ago

Thanks for the feedback, I'll update the docs!