Hi @Matthias Grosperrin ,
Thanks for reaching out.
You can achieve this by using the On-Behalf-Of flow. The On-Behalf-Of flow is used to obtain a token to call a downstream API, on behalf of a user. In your case, the WebApp will obtain an access token for itself and an access token for the API, on behalf of the user. The API can then use the access token it obtained to call the Microsoft Graph API.
To implement the On-Behalf-Of flow, you need to configure the app registrations for both the WebApp and the API. The WebApp will need to request an access token for itself and an access token for the API, using the user's access token. The API will need to validate the access token it received from the WebApp and use it to call the Microsoft Graph API.
Reference - https://www.youtube.com/watch?v=M5yXU6oWchU
https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-on-behalf-of-flow
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.