I am working on a solution that needs to retreive email from a mailbox from a tenant using MS Graph API. The solution needs to run in the background, with no use input (eg call login page for email in browser) I have registered an Azure application, and have Admin consent for the MS Graph API: