SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a custom disp-form and custom edit-form in a customized sharepoint list. I'd like to restrict access to those 2 custom forms to a specific security group.

Can someone advise how I can add some sort of permission to these forms?

share|improve this question

This is the best example I've found for this

share|improve this answer
Thanks Andrew, I've managed to do that, however it has just secured the list view. I'm not sure how i can then limit access to the two forms dispform and editform. If i add them to the CustomActions list, the appear in both the new secured view and the original views in the ECB menu. And everyone who can access either lists can access the forms. – Peter Jun 28 '12 at 7:04

Create a simple webpart which checks for access permissions. Add these webpart into the forms.

share|improve this answer
Thanks for the reply. – Peter Jun 28 '12 at 6:30
Cheers for the reply. Are you able to provide some more detail on how to do this? – Peter Jun 28 '12 at 7:06
In your custom webpart, you can check the access permission for the currently logged in user. Get the security group to which the user belongs to and if that doesnt match with the exepected group, then redirect the user to an "Access denied" page. – Manju Jun 28 '12 at 8:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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