'Cannot retrieve user Teams chat 1:1 using Graph Explorer

I have been tasked to implement a 30 day Teams chat (1:1) deletion policy. I am looking for the best option to be able to retrieve a given users' Teams 1:1 chat before this policy is live.

I have been granted access to MS restricted Teams APIs and have been trying to use Graph Explorer using this command: https://graph.microsoft.com/v1.0/users/{id}/chats/getAllMessages but it always returns this error message.

enter image description here

What does this actually mean? Is it because I'm logged in as a user within Graph Explorer that it classes that as delegated mode?

How is everyone else retrieving the 1:1 Teams chat? Am I missing another easier alternative route? PST files via eDiscovery isn't an option for us.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source