As I just had a very frustrating experience trying to get access to my shared mailboxes, I want to share how I managed to do it in the end.
The only way I could find so far to reliably access is by using the "Microsoft 365 Email - Make an API Call” module. However, to be able to access shared mailboxes, you need to manually add two permissions/ scopes. Either while creating a new connection via the advanced options, or by editing an existing connection, add the two Scopes, ‘Mail.Read.Shared’ and ‘Mail.ReadWrite.Shared’. Then paste the url /v1.0/users/SHARED@MAILBOX.com/messages and you should be now able to use the filter function of the graph API to get the message you are interested in.