• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 257
  • Last Modified:

How to pull a URL from a SharePoint list the users don't have rights to, based on the current user

I'm trying to add a link to a page based on a list the user does not have access to. How can this be achieved?

I have a custom list with a people picker and a URL. One security group would have access to viewing and editing the list. Regular users should not be able to see the list in "all site content" or view the list contents at all, only have their URL retrieved from the list.

I've tried some audience targeting, specific item level permissions (unreasonable maintenance for the admins), filtering views, etc. And cannot achieve the requirement. Any suggestions?
0
John
Asked:
John
  • 2
  • 2
1 Solution
 
Jamie McAllister MVPArchitectCommented:
No! This is totally contrary to the whole concept of security trimming et al where the disallowed assets are completely hidden.

The only way to achieve this would be custom coding IMHO where you impersonated a user, iterated through the assets recording security exceptions, and displayed the report.

This would be inefficient as would need to be done per user.

Without custom coding I dont think you can meet this requirement due to the security model.
0
 
JohnAuthor Commented:
The solution I decided on, was to create a custom List Workflow in SharePoint Designer that modifies item-level security on new or changed items. This should meet the requirement and besides a minor concern about re-inherited permissions, it should do what's needed.
0
 
Jamie McAllister MVPArchitectCommented:
It's common to get failures when changing item level permissions through code occasionally. (Adding or removing the permissions.) Hope the WF handles that.
0
 
JohnAuthor Commented:
Suggested alternatives were unclear on specific details to accomplish my goal and I discovered a solution on my own.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now