SOLVED
Home

Word cannot open an anonymous link.

%3CLINGO-SUB%20id%3D%22lingo-sub-866596%22%20slang%3D%22en-US%22%3EWord%20cannot%20open%20an%20anonymous%20link.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-866596%22%20slang%3D%22en-US%22%3E%3CP%3EI%20can%20use%20the%20CSOM%20to%20generate%20an%20anonymous%20link%2C%20for%20example%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20string%20link%20%3D%20context.Web.CreateAnonymousLinkWithExpirationForDocument(documentUrl%2C%20ExternalSharingDocumentOption.Edit%2CDateTime.Now.AddHours(48))%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewill%20create%20a%20URL%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3E%3CA%20href%3D%22https%3A%2F%2Fexampledomain.sharepoint.com%2F%3Aw%3A%2Fg%2FRM%2FEQfxCwDEyHZEpie0kni1HhoBGHJthvKfUmMd_bmyYRHgPg%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fexampledomain.sharepoint.com%2F%3Aw%3A%2Fg%2FRM%2FEQfxCwDEyHZEpie0kni1HhoBGHJthvKfUmMd_bmyYRHgPg%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20start%20Word%2C%20and%20Click%20Open-%26gt%3BBrowse%20and%20paste%20this%20link%20in%20to%20the%20filename%2C%20it%20fails%20to%20open%20the%20document.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20confirm%20it%20opens%20correctly%20in%20the%20browser%3A%20if%20I%20paste%20this%20link%20in%20the%20browser%20it%20opens%20in%20the%20online%20editor.%20I%20can%20click%20%22Open%20in%20Desktop%20App%22%20and%20it%20will%20open%20correctly%20in%20Word.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20not%20open%20the%20link%20from%20Word%2C%20which%20is%20what%20I%20really%20need%20to%20do!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20please%20fix%20this%20bug%20or%20provide%20alternate%20means%20of%20doing%20this%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-866596%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-868501%22%20slang%3D%22en-US%22%3ERe%3A%20Word%20cannot%20open%20an%20anonymous%20link.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-868501%22%20slang%3D%22en-US%22%3EThis%20actually%20isn%E2%80%99t%20a%20bug.%20OneDrive%20%2F%20SharePoint%20just%20doesn%E2%80%99t%20support%20the%20use%20of%20office%20clients%20when%20using%20anonymous%20links.%20I%20believe%20the%20team%20is%20looking%20into%20adding%20this%20support%20at%20some%20point%20but%20you%20must%20use%20the%20office%20online%20web%20clients%20for%20anon%20links.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-869517%22%20slang%3D%22en-US%22%3ERe%3A%20Word%20cannot%20open%20an%20anonymous%20link.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-869517%22%20slang%3D%22en-US%22%3E%3CP%3EIt's%20an%20undocumented%2C%20incomplete%20roll%20out%20of%20a%20feature.%20Someone%20stuffed%20up%20because%20literally%2099.9%25%20of%20users%20use%20the%20desktop%20apps.%20So%20why%20make%20a%20feature%20useful%20for%200.1%25%20of%20users%3F%20Please%20fix%20Microsoft!!!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-870668%22%20slang%3D%22en-US%22%3ERe%3A%20Word%20cannot%20open%20an%20anonymous%20link.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-870668%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F412248%22%20target%3D%22_blank%22%3E%40LukeSharepoint%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EChris%20is%20correct.%20The%20Office%20desktop%20apps%20don't%20currently%20support%20opening%20the%20anonymous%2Fanyone%20links%20though%20this%20is%20certainly%20something%20we%20are%20looking%20at%20solving.%20I%20do%20want%20to%20note%20as%20well%20that%20once%20a%20signed%20in%20user%20has%20used%20the%20anonymous%20link%2C%20they%20are%20%22redeemed%22%20on%20it%20and%20should%20be%20able%20to%20open%20the%20document%20via%20the%20desktop%20apps.%20Hopefully%20that%20helps!%20Thanks!%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EStephen%20Rice%3C%2FP%3E%0A%3CP%3ESenior%20Program%20Manager%2C%20OneDrive%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-870995%22%20slang%3D%22en-US%22%3ERe%3A%20Word%20cannot%20open%20an%20anonymous%20link.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-870995%22%20slang%3D%22en-US%22%3EAssuming%20the%20right%20credentials%20are%20cached%20in%20the%20browser%20at%20the%20time%2C%20the%20woah's%20of%20MSA's!%20%3A)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E
Highlighted
LukeSharepoint
New Contributor

I can use the CSOM to generate an anonymous link, for example

 

 

 

                string link = context.Web.CreateAnonymousLinkWithExpirationForDocument(documentUrl, ExternalSharingDocumentOption.Edit,DateTime.Now.AddHours(48));

 

 

 

will create a URL:

 

https://exampledomain.sharepoint.com/:w:/g/RM/EQfxCwDEyHZEpie0kni1HhoBGHJthvKfUmMd_bmyYRHgPg

 

 

 

 

 

 

If I start Word, and Click Open->Browse and paste this link in to the filename, it fails to open the document.

 

I can confirm it opens correctly in the browser: if I paste this link in the browser it opens in the online editor. I can click "Open in Desktop App" and it will open correctly in Word.

 

I can not open the link from Word, which is what I really need to do!

 

Can you please fix this bug or provide alternate means of doing this?

4 Replies
Solution
This actually isn’t a bug. OneDrive / SharePoint just doesn’t support the use of office clients when using anonymous links. I believe the team is looking into adding this support at some point but you must use the office online web clients for anon links.

It's an undocumented, incomplete roll out of a feature. Someone stuffed up because literally 99.9% of users use the desktop apps. So why make a feature useful for 0.1% of users? Please fix Microsoft!!!

Hi @LukeSharepoint,

 

Chris is correct. The Office desktop apps don't currently support opening the anonymous/anyone links though this is certainly something we are looking at solving. I do want to note as well that once a signed in user has used the anonymous link, they are "redeemed" on it and should be able to open the document via the desktop apps. Hopefully that helps! Thanks!


Stephen Rice

Senior Program Manager, OneDrive

Assuming the right credentials are cached in the browser at the time, the woah's of MSA's! :)
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
PacketMon Components are not loading in WAC 1909
HotCakeX in Windows Admin Center on
2 Replies