Introduction of the Permissions in SharePoint

No.of Views2194
Bookmarked0 times
Downloads 
Votes0
By  André Lage   On  15 Jul 2010 08:07:30
Tag : SharePoint , Enterprise Content Management
One of the situations we encounter when we are developing is to define who should and who should not access the pages of SharePoint by default SharePoint has default methods to achieve access the pages, but we need to have users access the pages but not the entire page.
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

One of the situations we encounter when we are developing is to define who should and who should not access the pages of SharePoint by default SharePoint has default methods to achieve access the pages, but we need to have users access the pages but not the entire page, so even if heard.

Scenario

User needs to access the page content but may not update or add new content.

How do you access the form pages and not save content to SharePoint?

 In the situation is very normal to happen and have to be very well thought out to learn in that situation is to be used, SharePoint has a control "SPSecurityTrimmedControl"to control access to controls that we consider important and should have permissions associated with SharePoint.

Configure access controls for SharePoint Permissions

Image Loading

Add reference the DLL, To use the control SPSecurityTrimmedControl**, you must perform the reference at the top of our page of SharePoint.

Example

<% @ Register TagPrefix= "SharePointWebControls"Namespace ="Microsoft.SharePoint.WebControls"Assembly ="Microsoft.SharePoint, Version = 12.0.0.0, Culture = neutral, PublicKeyToken= 71e9bce111e9429c "%>

Tag to limit the controlthe means permissions for SharePoint.

To limit access to our checks we should add tag SPSecurityTrimmedControl and PermissionsString, all controls that are within the tag are attached to permission Sharepoint, if no permission can not access.

Example

<SharePointWebControls: SPSecurityTrimmedControl ID = "AgendaPermission" runat= "server" PermissionsString= "addListItems"><asp: TextBox runat= "server" id = "TextBox1"> </asp: TextBox><br><br><asp: Button runat= "server" Text = "Save"id =" Button1 "> </asp: Button></SharePointWebControls: SPSecurityTrimmedControl>

Here is List of Permissions in SharePoint.

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx

List Permissions

  • ManageLists
  • CancelCheckout
  • AddListItems
  • EditListItems
  • DeleteListItems
  • ViewListItems
  • ApproveItems
  • OpenItems
  • ViewVersions
  • DeleteVersions
  • CreateAlerts
  • ViewFormPages

Site Permissions

  • ManagePermissions
  • ViewUsageData
  • ManageSubwebs
  • ManageWeb
  • AddAndCustomizePages
  • ApplyThemeAndBorder
  • ApplyStyleSheets
  • CreateGroups
  • BrowseDirectories
  • CreateSSCSite
  • ViewPage
  • EnumeratePermissions
  • BrowseUserInfo
  • ManageAlerts
  • UseRemoteAPIs
  • UseClientIntegration
  • Open
  • EditMyUserInfo

Personal Permissions

  • ManagePersonalViews
  • AddDelPrivateWebParts
  • UpdatePersonalWebParts

When the page is in anonymous access or user that does not have permission "addListItems" controls within the tag  "SPSecurityTrimmedControl"are not visible.

Example

Image Loading

When you access our site with a user with permission to set the PermissionsString, you already can access the control, easy easy.

Example 

Image Loading

With this technique we can define several states and permissions associated with the user permissions using SharePoint.
I hope you enjoyed it

 
Sign Up to vote for this article
 
About Author
 
André Lage
Occupation-Not Provided
Company-Not Provided
Member Type-Senior
Location-Portugal
Joined date-09 Jun 2010
Home Page-Not Provided
Blog Page-Not Provided
 
 
Other popularSectionarticles
    In this article, I'm going to explain how to create List of Definition in SharePoint 2010.The List Definition is brand new features in SharePoint 2010.
    Published Date : 22/Sep/2011
    Now its a time user need Rich User Interface with high level of interactivity that is easily possible with xhtml technologies
    Published Date : 21/Jun/2010
    Difference between MOSS and WSS
    Published Date : 16/Feb/2010
    In this article, I am going to give and walkthrough of how to define a custom Content type in MOSS or SharePoint.
    Published Date : 16/Feb/2010
    Recently I have involved in branding one of our clients sharepoint portal. As part of the branding process we needed to modify the application.master file, so even the layout pages will have the same look and feel. As part of the investigation, we come up with the best approach for doing this.
    Published Date : 05/Sep/2010
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top