Hi Babu -
I order to get to another user's mailbox - and the other user hasn't delegated their mailbox access in Exchange Online (like an administrative assistant might do) - you need to use Application permissions rather than Delegated (which acts on behalf of the user). Here is the relevant documentation on the call: https://learn.microsoft.com/en-us/graph/api/user-list-messages?view=graph-rest-1.0&tabs=http
Notice that there are three kinds of permissions listed - you need "Application" permissions.
To get those you need to use Client Credentials Flow - see https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-client-creds-grant-flow for details.
Once you get this working - you are likely to run into throttling issues if you try to load a large volume of email. Details are here: https://learn.microsoft.com/en-us/graph/throttling
Thanks and best of luck!