I have been tasked to retrieve bulk chat messages from a particular user within Teams in the chat and channel areas.
I am using Graph Explorer. I am getting an error when running the following query: https://graph.microsoft.com/beta/users/Zolla@zolla75.onmicrosoft.com/chats/getAllMessages
"code": "PreconditionFailed",
"message": "Requested API is not supported in delegated context",
I have setup App permissions within AAD and provided the correct permissions to run the query.
I am able to run other queries like https://graph.microsoft.com/beta/teams/9708524d-c201-4eeb-854e-502637eef170/channels/19%3a-7Nu-mc2pLJ1l__mRaqtR8proR48zHm6OXOt0CDDydI1%40thread.tacv2/messages - this returns the correct info so I therefore believe my app permissions are configured correctly within AAD. I double checked the permission.

I am very new to this so any guidance would be appreciated.
Thanks

