An API that connects multiple Microsoft services, enabling data access and automation across platforms
The error simply means that there is a permission mismatch- the permissions your application is requesting and the permissions available on the target resource do not match.
The application is requesting for a scope-AllSites.Manage which is a SharePoint Permission. Hence it is trying to get this permission from Microsoft Graph API which does not have equivalent SharePoint permissions or rather the scope name is not equivalent.
To resolve this-identify the appropriate Microsoft Graph Permissions using the Permission Reference here- https://learn.microsoft.com/en-us/graph/permissions-reference#sitesmanageall and then retry the scenario. Ensure that Sites.Manage.All is admin consented is App permissions. If you have code ensure that the scopes requested in it match what you have configured on the portal.