You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
I have an issue with scope specifying for a shared link.
I mean, pnp core allows only following methods, at least now:
CreateAnonymousLinkForDocument()
ShareDocument() // it's problem that I can't specify scope for link here
But I need to create a link for all people in organization.
Basically, it's possible to achieve by UI.
And I'am also able to specify scope via microsft graph
POST /me/drive/items/{itemId}/createLink
Content-type: application/json
{
"type": "view",
"scope": "anonymous"
}
Also I've found a solution which is changing default sharing link type for a tenant
Unfortunately, this solution doesn't work:
(default sharing link type is changed, but shared link is still created for specific people )
Office365Tenant tenant = new Office365Tenant(context.Web.Context);
tenant.LoadAndExecute();
tenant.DefaultSharingLinkType = SharingLinkType.Internal;
tenant.LoadAndExecute();
SharingResult result = context.Web.ShareDocument("https://tenantname.sharepoint.com/Documents/sample.docx", "someone@example.com", ExternalSharingDocumentOption.View,true, "Doc shared programmatically");
Is it possible to specify the type of link being created using csom ?
Hello.
I have an issue with scope specifying for a shared link.
I mean, pnp core allows only following methods, at least now:
But I need to create a link for all people in organization.
Basically, it's possible to achieve by UI.
And I'am also able to specify scope via microsft graph
Also I've found a solution which is changing default sharing link type for a tenant
Unfortunately, this solution doesn't work:
(default sharing link type is changed, but shared link is still created for specific people )
Is it possible to specify the type of link being created using csom ?
This question is also available in SO
Category
[ ] Enhancement
Environment
[ ] Office 365 / SharePoint Online
The text was updated successfully, but these errors were encountered: