SharePoint sharing link security

2025-08-05T11:21:54.2366667+00:00

How to ensure the confidential when sharing the sensitive information in SharePoint ?

My context is:

I have 5 types of information and want to create sharing link for internal and external user. But for the external I want the expired link for the specific time also make sure they cant access the other type of information.

Is it possible to do it in CSOM environment ?

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

Accepted answer
  1. Jayden-P 5,640 Reputation points Microsoft External Staff Moderator
    2025-08-05T11:55:38.17+00:00

    Hi @Titus Tolbert (Sr. Dev Operation, Hoka corp)

    Thank you for posting your question in the Microsoft Q&A forum. 

    From your description, my suggestion is creating separated links for internal and external users.

    For external, you can use this method Web.CreateAnonymousLinkWithExpiration method 

    For internal, you can use either

    Web.ShareObject Method (Microsoft.SharePoint.Client) | Microsoft Learn or

    Web.CreateOrganizationSharingLink Method (Microsoft.SharePoint.Client) | Microsoft Learn

    You can read at CSOM SPT for more details how to use it:

    [MS-CSOMSPT]: CreateOrganizationSharingLink | Microsoft Learn

    [MS-CSOMSPT]: ShareObject | Microsoft Learn

    [MS-CSOMSPT]: CreateAnonymousLinkWithExpiration | Microsoft Learn

    I hope this information helps.


    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.

    User's image


0 additional answers

Sort by: Most 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.