I have a Sharepoint hosted list which I want to hide from some user by using code. Not hide from browser. Cause I want the admin can access to it and change something when they need. And the entire list should be hidden from user, not only some fields or column.
If you want to hide it from ALL users you may use hidden property of List Class. If you want to hide this link for a set of users you have two options:
Break the permissions in list settings remove the users/groups which you don't want to show the list. give permissions only to those users/groups which you want to show the list.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.