How to use anonymous sharing link

Graham Jarvis 136 Reputation points
2021-08-19T09:55:40.027+00:00

Hi,

In my application I have successfully uploaded a Word Document that I want to share with people outside of my organisation for editing. So I have created a sharing link with the scope 'anonymous' and the type 'edit'. All of this has been done using the php microsoft-graph API.

When I login one Onedrive and check the sharing link with 'Manage Access' I see the following:

124668-screenshot-2021-08-19-at-102419.png

Under the link it does say 'Anyone with the link can edit' - which is exactly what I want. However, when I send the link to someone else to try to edit the document, they get an error saying that they cannot be found in the sharepoint directory (The issue for them is 'User not in directory'.). There are suggestions to try in private browsing, etc - none of which work for them.

I notice that the pencil icon next to 'eicshare visitors' is crossed-through - so maybe that is a clue to what I am missing?

What do I need to do in order that anybody can access the document and edit it using the sharing link? Is there a setting I need to make in Azure/Sharepoint, or is it something I need to do via the api when sharing the link?

Apologies once again for tagging you, but I'm hoping you'll know the answer @JosephXu-MSFT

Microsoft 365 and Office SharePoint Development
Microsoft Security Microsoft Graph
{count} votes

2 answers

Sort by: Most helpful
  1. Graham Jarvis 136 Reputation points
    2021-08-20T08:14:04.417+00:00

    Hi @JosephXu-MSFT , thank you for responding.

    Yes, they are unable to access and edit in browser privacy mode. Additionally, I also sent the link to myself in an email where I have no Microsoft Word or MS365 set-up (which will be the case for a fair proportion of recipients) and, although I could view and download the document, I was unable to edit it (I could see the edit tab when editing had been enabled, but it was greyed-out and unusable in my browser).

    Here is a screenshot of the user mentioned previously with their details:

    124889-screenshot-2021-08-19-at-095908.png

    I double-checked my settings in 365/Sharepoint and believe I have enabled all anonymous access, but I guess I must be missing something, somewhere.

    Thank you attention. I hope we can resolve this.

    Kind regards,
    Graham.

    1 person found this answer helpful.

  2. Graham Jarvis 136 Reputation points
    2021-08-20T09:34:32.657+00:00

    Update:

    Hi @JosephXu-MSFT ,

    in case it helps... here is a current link to the document:

    https://gjsotech.sharepoint.com/:w:/s/eicshare/Ed5CO5xM3_VFimaLU4zGJDcBAeqLW6J5l2N2soUHI-nOSw

    The following is information about the link obtained using microsoft-graph API:

    array:6 [  
      "@odata.context" => "https://graph.microsoft.com/v1.0/$metadata#permission"  
      "@odata.type" => "#microsoft.graph.permission"  
      "id" => "eb509e0e-4aef-44ef-a215-26539e89d08c"  
      "roles" => array:1 [  
        0 => "write"  
      ]  
      "hasPassword" => false  
      "link" => array:4 [  
        "scope" => "anonymous"  
        "type" => "edit"  
        "webUrl" => "https://gjsotech.sharepoint.com/:w:/s/eicshare/Ed5CO5xM3_VFimaLU4zGJDcBAeqLW6J5l2N2soUHI-nOSw"  
        "preventsDownload" => false  
      ]  
    ]  
    

    Regards,
    Graham.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.