I'm working on a SharePoint Embedded solution which, among other things, creates Word document view/edit links using the Graph API endpoint createLink : https://learn.microsoft.com/en-us/graph/api/driveitem-createlink?view=graph-rest-1.0&tabs=http
My problem is that when the Word document opens in the browser, the user has the option to "Open in Desktop" which opens the Word document in the Word desktop application. I want to prevent the user from opening the Word document in the Word desktop application and "force" them to only open the Word document in the browser.
How can I prevent the users from opening the Word document in the desktop application? Or asked in a different way, how can I enforce that Word documents can only be opened in the browser?