Forum Discussion
Sharepoint online - limit Permissions/Views
deleted
10 Replies
- Dean_GrossSilver Contributor
In my experience, this always takes more effort than it is worth. It sound like this is more of a "want", than a "Need". I would recommend spending you time on something that is going to provide more value to the organization.
These type of "nice to have" modifications can quickly become major time sinks as they expand to cover more edge cases.
- Thuyavan GanesanIron ContributorBased on you description, my understanding is that you want to hide certain view and switch option from certain users. If the users has only read permission then you can do following steps to achieve it.
As you mentioned you create a separate view for Readers and set Target Audience for that view
Using Client Scripting (JavaScript/JQuery) you can hide the ribbon and other options from users through which they will not be able to switch views. (OR) Using the JavaScript/JQuery you can redirect the users from when ever they try to access the owners view URL.
Let us know if you are taking this approach, will share the code.- Deleted
deleted
- Robin NilssonBronze Contributor
Dean is correct, you can go down a rabbit hole with this type of requirement. :)
In On-Premise, the way we dealt with this was to use 2 lists. The first list was for the user entry, and in the advanced list settings we set the item level permissions to only allow user to see their own entries.
When an item was created, we had a workflow (you could use Flow for this, or a SharePoint Designer workflow) to copy the information into a second list, where permissions were set for just the managers. They would then work their own list. In this list we would store the ID of the item in the first list so we could always match them up.
- But it’s still security through obscurity 🙂
- Sharepoint our of the box does not have support for column level security. Only row level. There used to be some 3rd party apps for SharePoint that would accomplish this but not sure if there are any for SPO.
You could use powerapps to do security through obscurity but if it’s highly sensitive data you’ll have to go another route since everyone technically could see the data if they knew how to find your data source.