4

In my case I am using "Issue Tracking" built in list from share point.Once the user has submitted the list ,I copy it into another list in which admin has full privilege but for enduser I want to give them a read only view .But how can I still let them comment in the post.I have a no-code solution.

Any idea or any workaround that I can do?

1

You could use code to make the field read only or editable based on the user permissions:

  1. Using JavaScript (CSOM) to check if the current user belongs to the specific group.

    How to check if the current user belongs to the specific SharePoint group using JavaScript.

  2. Using JavaScript (jQuery) to change the readOnly Property of the field elements to true or false based the user permissions.

If you are using the infopath form, you can get user profile and check if the user belongs to the group using web service _vti_bin/UserProfileService.asmx.

A demo for you to refer to: how to check if a user is a member of a SharePoint group in InfoPath.

  • Thanks for such an elaborate answer but I am like few days into share point ,so not very sure on how to approach it from code.Though I will try once . – shivi Oct 25 '17 at 1:05
0

There is no built-in view based permissions. There are also no field-based permissions in SharePoint.

0

You can give end user contribute permission instead of read. But make the fields on the form as read only using jQuery/javascript or JSLink.

  • But If I do this will the other fields non-editable for admins as well? – shivi Oct 24 '17 at 7:07
  • You are right !!! We can put an if condition to check for user permission (i.e. contribute or full control permission) or compare current user field. – Monica Jagani Oct 25 '17 at 5:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.