Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Member could not share with higher permissions' When Creating Sharing Links in SharePoint Online with View Permissions" #10086

Open
2 of 9 tasks
YuriySamorodov opened this issue Jan 20, 2025 · 2 comments
Labels
type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Comments

@YuriySamorodov
Copy link

YuriySamorodov commented Jan 20, 2025

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version Google Chrome (Version 114.0.5735.90), Microsoft Edge Version 132.0.2957.115 (Official build) (64-bit)
  • SPFx version
  • Node.js version
  • etc

Describe the bug / error

When attempting to create a sharing link for any user with any email and "View" permissions, the API returns an error message stating:

"Member could not share with higher permissions."

Image

Image

Image

{"request":{"createLink":true,"settings":{"linkKind":6,"expiration":null,"role":1,"restrictShareMembership":true,"updatePassword":false,"password":"","scope":2,"nav":""},"peoplePickerInput":"[{\"Key\":\"[email protected]\",\"DisplayText\":\"[email protected]\",\"IsResolved\":true,\"Description\":\"[email protected]\",\"EntityType\":\"\",\"EntityData\":{\"SPUserID\":\"[email protected]\",\"Email\":\"[email protected]\",\"IsBlocked\":\"False\",\"PrincipalType\":\"UNVALIDATED_EMAIL_ADDRESS\",\"AccountName\":\"[email protected]\",\"SIPAddress\":\"[email protected]\",\"IsBlockedOnODB\":\"False\"},\"MultipleMatches\":[],\"ProviderName\":\"\",\"ProviderDisplayName\":\"\"}]"}}

{"error":{"code":"-4, System.InvalidOperationException","message":{"lang":"en-US","value":"Member could not share with higher permissions."}}}

This indicates that the user is unable to share items due to permission restrictions within the SharePoint environment.

Steps to reproduce

  1. Attempt to create a sharing link using the SharePoint Online backend API for a user who already has access.
  2. Observe the error message returned by the API.

Expected behavior

The user should be able to create a sharing link without encountering permission errors and regardless of the permission level chosen, provided they have appropriate sharing permissions set at the site level.

@YuriySamorodov YuriySamorodov added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Jan 20, 2025
@GerardoAbalMO
Copy link

We have been experiencing the exact same issue with our SharePoint Online Tenant since January 20, 2025.

All settings related to sharing permissions are correctly configured. Please note that we have been working with several document libraries without any issues for years.

We have not made any changes.

Any help will be appreciated.

@GerardoAbalMO
Copy link

After opening a case with Microsoft Support, they ask me to change some Permision Set Configuration.

On "Edit" Permision Set, we have to disable this two characteristics: BrowseDirectories and EnumeratePermissions

After apply, wait almost 1 hour the problem seems to be solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Projects
None yet
Development

No branches or pull requests

2 participants