

Copy the generated Client Secret to a notepad. Type in a Description, select Expires as Never and Click Add. Click on Certificates and secrets in the left navigation and then click on New client secret. Once registered, go to the Overview and copy the Application (client) ID and Tenant ID to a notepad.

Just create a new page in any SharePoint site and provide the URL here. This will come handy later, so I recommend to do it this way. Redirect URI is optional, but I filled in a url like of one of my existing SharePoint page. Just go to Azure AD – App Registrations and Click on New registration.įill in the Application Name and account type. To use the Graph API, we first need to register an app in Azure AD and grant it permissions to be able to read chats. With this limitation in mind, I continued my journey to the solution.

So, it won’t have access to all the users chats but only the current logged-in user. What this essentially mean, is that the application can only read the chats “on behalf” of the logged in user.

To some extent it makes sense from data privacy point of view, but then “List Messages in a Chat” does support application permission, so it’s kind of weird. The “List Chats” APIs only supports delegated permissions and Application permissions are not supported (yet). LimitationĮven before I could jump into using these APIs to try n export some chats, I came across a major limitation. Well, that made it clear, that I will have to go for some customizations to be able to achieve this. Some more googling led me to Beta version of these Graph APIs – List Chats and List Messages in a Chat. Since the requirement came from business, I was looking for more like an Click on “Export Chats” somewhere and get an export in easily readable format. But neither of these actually provides an acceptable solution to end users. So, it was time to start a fun journey of finding it out and getting it done! Initial FindingsĪs it goes, some initial googling led to a few articles like this and this. Quick google search made it evident that there is no such feature available as of date. The expectation was to get something like the Conversation History in Outlook, we used to have in Skype days. Recently I came across a requirement about being able to export all the chat messages. Article updated on 31st Oct 2020 to use v1 API instead of Beta one to get the list of chats
