How to decode the SharePoint URL

Shinde, Avinash 15 Reputation points
2023-07-28T09:22:13.29+00:00

Hi, I have a document on SharePoint, when I copy the actual URL, it looks like "https://sdcr0.sharepoint.com/sites/SharedSite/Shared Documents/Forms/AllItems.aspx?id=/sites/SharedSite/Shared Documents/dossiers/222204/A. Controle/Sample Report.pdf&viewid=b3cc5016-e32d-4cd5-809b-6a01fbe4d227&parent=/sites/SharedSite/Shared Documents/dossiers/222204/A. Controle" and when I use "Copy URL" function, then it looks like "https://sdcr0.sharepoint.com/:b:/s/SharedSite/EZ-byBEYvwBGolyOlTcIFCsBMHvkZVh_xKmH41o4D0egmg?e=KqVriA".

I want to extract the details from https://sdcr0.sharepoint.com/:b:/s/SharedSite/EZ-byBEYvwBGolyOlTcIFCsBMHvkZVh_xKmH41o4D0egmg?e=KqVriA" and get the details (specifically id of the document), how can I do it?

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2023-07-31T09:45:35.5133333+00:00

    There are two types of links for documents.

    1.You could get document details through specified URL. To copy the specified URL of the document, select the document -> Details -> Copy the path.

    1

    2.When clicking "Copy link", you will get the URL is a sharing link of document. This URL contains users sharing permissions.

    Reference:

    https://sharepointcass.com/2021/03/11/what-do-the-parameters-in-a-shared-sharepoint-onedrive-link-mean/

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

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.