简体   繁体   中英

How to configure a column in my list on sharepoint

I need to customize one or two columns in my list on SharePoint.

I need for the selected columns be restricted for editing by one group of users, while another group of users will have access to edit all columns in my list.

The short answer is that you can't. Permissions are set on the list level, not any lower to things like fields or views.

The long answer is that there are lots of different tricks to make it look like you're granting view/field types of permissions, but as long as the data is in the same list, you need to grant access to those users or to a service account, etc...

See this: https://social.technet.microsoft.com/Forums/office/en-US/3730d47f-6ba2-4ffd-ac05-567b042ff5c1/how-to-restrict-permissions-on-list-views?forum=sharepointgenerallegacy

Check whether current user belongs to a group by JSOM. check this thread

Then disable control by jQuery.

// Disable #x
$( "selector" ).prop( "disabled", true );

// Enable #x
$( "selector" ).prop( "disabled", false );

jQuery selector

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM