- You give the Graph permission in app, but you want to use the SharePoint Search api. And your administrator has not yet consented to the application’s permissions.
- If you need to grant access to SP Rest api via Azure AD App, you need to use a certificate to request access. Take a look at this :https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread