@Selim Irez , thank you for reaching out. You are absolutely correct. The following error is coming up as the scopes mentioned in the request "wl.basic,wl.emails" are not valid scopes for the Graph API resource [ Resource Name: Microsoft Graph ---> Endpoint: https://graph.microsoft.com ---> App ID: 00000003-0000-0000-c000-000000000000]
Valid scopes for Graph API looks something:
- Read a user's calendar by using Calendars.Read
- Write to a user's calendar by using Calendars.ReadWrite
- Send mail as a user using by Mail.Send
You can read more on Scopes, Permissions and Consent here: https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent
You can also try adding the following "https://graph.microsoft.com/.default " as value to your scope parameter. This would pull all the permissions that you have added for Graph API in the app registration done in AAD.
Hope this helps.
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.