pnp / pnp/pnpframework

ShareDocument Extension with Guest Users

Open
#416 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

When using the ShareDocument extension to share documents with email addresses, if the used target email address belongs to a user who is considered a "guest user" on Sharepoint, they get given direct access to the document instead of having to go through a share link like other email addresses that are not considered guests. This isn't a problem when you are only sharing a document with one person, but when you share a document with many, having to specify which link works for which person (direct link for guest users, share link for the rest) it can cause quite a bit of confusion.

I have been trying to fix this however I have made absolutely no progress. I thought it might have something to do with the ResolvePeoplePickerValueForEmailImplementation function and how the parameters are set there but nothing I change makes any difference.

Since I have been unable to figure out how to do this, I have come here. Is it possible to force emails to be shared through a Share Link with the ShareDocument extension instead of being given direct access?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the ShareDocument extension and the ResolvePeoplePickerValueForEmailImplementation entry point, then reproduce sharing with guest and non-guest email addresses. Determine whether the extension can force all recipients through a Share Link; done means guest recipients receive the same share-link behavior without breaking multi-recipient sharing.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.