List of SharePoint Base Permissions with their Hex and Decimal Values
Here is the list of all SharePoint base permissions valid for Windows SharePoint Services and SharePoint Foundation both, along with their Hex and decimal values. I hope it will help you to easily reference them in your projects.
|
Permission Name |
Hex Value |
Decimal Value |
Description |
|
AddAndCustomizePages |
0×40000 |
262144 |
Add, change, or delete HTML pages or Web Part Pages, and edit |
|
AddDelPrivateWebParts |
0×10000000 |
268435456 |
Add or remove personal Web Parts on a Web Part Page. |
|
AddListItems |
0×2 |
2 |
Add items to lists, add documents to document libraries, and add |
|
ApplyStyleSheets |
0×100000 |
1048576 |
Apply a style sheet (.css file) to the Web site. |
|
ApplyThemeAndBorder |
0×80000 |
524288 |
Apply a theme or borders to the entire Web site. |
|
ApproveItems |
0×10 |
16 |
Approve a minor version of a list item or document. |
|
BrowseDirectories |
0×4000000 |
67108864 |
Enumerate files and folders in a Web site using Microsoft Office |
|
BrowseUserInfo |
0×8000000 |
134217728 |
View information about users of the Web site. |
|
CancelCheckout |
0×100 |
256 |
Discard or check in a document which is checked out to another |
|
CreateAlerts |
0×8000000000 |
549755813888 |
Create e-mail alerts. |
|
CreateGroups |
0×1000000 |
16777216 |
Create a group of users that can be used anywhere within the |
|
CreateSSCSite |
0×400000 |
4194304 |
Create a Web site using Self-Service Site Creation.
NOTE: CreateSSCSite (0×400000) is a hidden base permission. It is not |
|
DeleteListItems |
0×8 |
8 |
Delete items from a list, documents from a document library, and |
|
DeleteVersions |
0×80 |
128 |
Delete past versions of a list item or document. |
|
EditListItems |
0×4 |
4 |
Edit items in lists, edit documents in document libraries, edit |
|
EditMyUserInfo |
0×10000000000 |
1099511627776 |
Allows a user to change his or her user information, such as |
|
EmptyMask |
0 |
0×0 |
Has no permissions on the Web site. Not available through the |
|
EnumeratePermissions |
0×4000000000000000 |
4611686018427380000 |
Enumerate permissions on the Web site, list, folder, document, |
|
FullMask |
0x7fffffffffffffff |
9223372036854770000 |
Has all permissions on the Web site. Not available through the |
|
ManageAlerts |
0×4000000000 |
274877906944 |
Manage alerts for all users of the Web site. |
|
ManageLists |
0×800 |
2048 |
Create and delete lists, add or remove columns in a list, and |
|
ManagePermissions |
0×2000000 |
33554432 |
Create and change permission levels on the Web site and assign |
|
ManagePersonalViews |
0×200 |
512 |
Create, change, and delete personal views of lists. |
|
ManageSubwebs |
0×800000 |
8388608 |
Create subsites such as team sites, Meeting Workspace sites, and |
|
ManageWeb |
0×40000000 |
1073741824 |
Grant the ability to perform all administration tasks for the |
|
Open |
0×10000 |
65536 |
Allow users to open a Web site, list, or folder to access items |
|
OpenItems |
0×20 |
32 |
View the source of documents with server-side file handlers. |
|
UpdatePersonalWebParts |
s 0×20000000 |
536870912 |
Update Web Parts to display personalized information. |
|
UseClientIntegration |
0×1000000000 |
68719476736 |
Use features that launch client applications; otherwise, users |
|
UseRemoteAPIs |
0×2000000000 |
137438953472 |
Use SOAP, WebDAV, or Microsoft Office SharePoint Designer 2007 |
|
ViewFormPages |
0×1000 |
4096 |
View forms, views, and application pages, and enumerate lists. |
|
ViewListItems |
0×1 |
1 |
View items in lists, documents in document libraries, and view |
|
ViewPages |
0×20000 |
131072 |
View pages in a Web site. |
|
ViewUsageData |
0×200000 |
2097152 |
View reports on Web site usage. |
|
ViewVersions |
0×40 |
64 |
View past versions of a list item or document. |
What is the meaning of “Limited Access” in SharePoint?
If you are wondering what is “Limited Access” in SharePoint and how does it affect you then here is the simple explanation:
“Limited Access” in SharePoint means a user has an access to an item of the page specifically but not the whole SharePoint list. Normally, we don’t manage individual item permissions and list items normally inherit their permissions from their parent list but sometimes you may need to share a document or a an item to another user who does not have access to the parent list of that item. In this case, you will break the inheritance for that item/document and give permission specifically to that item/document.
Now, since that document resides under its parent library therefore, user will automatically get the “Limited Access” to the parent list which will in turn allow the user to only access that specific document.
For more information, I will recommend you to read Michael Nemtsev article here
Continuous Integration of SharePoint Project by using TFS
SharePoint projects are some what special in the way they use assemblies and some time it is very difficult to setup your TFS build process for continuous integration. Today, SharePoint Developer Team has published an excellent step-by-step process to properly setup your TFS Build Process for SharePoint Projects. You can read the article here
This article guides about the following:
- How to configure the build server to properly compile the SharePoint projects?
- List of necessary SharePoint assemblies to make sure compilation succeeds.
- How to update Powershell script to add the required files on Build server?
- Steps to create build definition.
- How to setup build workflow?
I would highly recommend you to read this article before embarking on your next SharePoint project.
Solution for “Access denied by Business Data Connectivity” Error
If you are trying to create external data type list and get the error “Access Denied by Business Data Connectivity” then the most common reason for that can be the incorrect permissions for your target External Content Type. To fix the issue, please perform the following steps:
- Open your SharePoint 2010 Central Administration Page
- Under Application Management, click Manage service applications
- Click Business Data Connectivity Service link
- List of all external content types will be displayed, select your target external content type by checking it
- Click Set Object Permissions on Ribbon
- “Set Object Permissions” dialogue box will be displayed, add yourself or any other users, as you want
- Check at least Selectable in client permission in permissions list
- Click OK to save your changes
Now try to view your external content types list and Bingo! there will be no more “Access denied by Business Data Connectivity” error message!
Solution: The Taxonomy feature (Feature ID “73EF14B1-13A9-416b-A9B5-ECECA2B0604C”) has not been activated
If you are trying to add a Managed Metadata type column and getting “The Taxonomy feature (Feature ID “73EF14B1-13A9-416b-A9B5-ECECA2B0604C”) has not been activated” error then here is the quickest way to enable the required feature by using following PowerShell cmdlet:
Enable-SPFeature -id “73EF14B1-13A9-416b-A9B5-ECECA2B0604C” -url “YourSiteUrl”
SharePoint 2010 Service Pack 1 is out!
Today Microsoft has released the much awaited Service Pack 1 for SharePoint 2010 along with Office 2010. Along with many bug fixes and minor updates, here is a quick list of new functionality which SP1 will add in your SharePoint environment:
- For video display, you will now be able to select a frame as a thumbnail by using “Video Thumbnail Picker”
- Users will have better visibility of how their SharePoint storage is being used.
- Performance have been enhanced to download large files from SharePoint.
- Alerts were not functioning properly in some scenarios, logic has been enhanced.
- Before SP1, you could not have some pages rendered in Internet Explorer 9 document mode (instead of Internet Explorer 8). Starting with SP1, a control is available that lets you set individual pages to be rendered in Internet Explorer 9.
- URLs to documents in document libraries are very long and include the Source parameter when the URL is copied (e.g., by right-clicking and selecting Copy Shortcut). In SP1, the Source parameter is not included in a copied URL, so the URL is much shorter.
and here are some more useful changes list as mentioned in technet blog here
- Improved support for Internet Explorer 9.
- Recycle bin: Lets you restore a site collection or a web that was deleted.
- Remote Backup Systems (RBS) and shallow copy can decrease downtime and increase efficiency by moving pointers to databases instead of moving databases.
- You can see which folders are taking up valuable space with the improved Storage Management feature in site settings.
- Support for Microsoft SQL Server 2011.
- A more robust Search Host Distribution service that improves error recovery and performance during the search crawl.
- Adds backup and restore functionality to recover deleted site collections and webs.
List of Special Pages in SharePoint 2010 which do not use any master page
There are some special pages in SharePoint 2010 which do not use any master page. You should be aware of these pages to avoid bad user experience while branding your site. Following is the list of those pages:
-
AccessDenied.aspx : Displays, if user does not have permission to perform respective action.
-
Confirmation.aspx : Displays, to confirm that your intended operation has been completed successfuly.
- Error.aspx : Displays, whenever an error occurs while processing the page.
- Reqacc.aspx : Displays, whenever user need to requests the access to certain area of SharePoint site.
- SignOut.aspx : Displays, when user signs out.
- WebDeleted.aspx : Displays, to confirm that the site has been successfuly deleted.
Quickest way to add Facebook Like Button on your SharePoint page
Facebook is everywhere. No one can deny the importance of Facebook’s social media capabilities.
If you want to add the Facebook Like button on your SharePoint pages then just paste the following code in a Content Editor Web Part and you will instantly get the Like button for that page. You do not need to hardcode the URL of your page as the given code automatically find it for you.
Just copy paste it and enjoy!
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
{
var url = location.href;
var url_parts = url.split('?');
var main_url = url_parts[0];
var facebookLike="<fb:like href='" + main_url + "' show_faces='true' width='450' font=''></fb:like>"
document.write(facebookLike);
}
// -->
</SCRIPT>
HTML Field Control versus Content Editor Web Part
Normally, people feel strong temptation to use Content Editor Web Part (CEWP) whenever they need to display HTML content on a SharePoint page. There is nothing wrong in using CEWP as far as you know when to use it and what are the alternatives. Most of the time CEWP performs as needed but there are some scenarios where we should consider using Field Control (FC) instead of using CEWP.
Please note that Field Controls are only available in Publishing sites and are designed to display HTML content as per the page layout. Here are some useful tips for when to use CEWP and when to use Field Controls:
Versioning (Use Field Control):
If you want to make sure you have full version history of a publishing page then use field control instead of CEWP because content of FC is stored in the list infrastructure and follow all the versioning capabilities of SharePoint. On the other hand, CEWP content is stored in ASP.NET profile infrastructure along with the URL of the page. It has no connection whatsoever with the versioning capabilities of SharePoint.
Content Targeting (Use CEWP):
If you want to display some content based on the context of the current user then you have no choice except using CEWP. CEWP is a web part and any web part can be made visible by using Audience targeting. FC has no such mechanism of utilizing Audience targeting.
Want Strict control of User interface and Page Layout? (Use Field Controls):
If you don’t want to allow content editors to change the layout of your pages or to include javascripts then use Field Controls. FC just contains the value and can not include javascript. Only page designers are able to specify how each FC will be rendered on the page. Whereas, CEWP gives more power to the content editor which can lead to change the user interface elements by applying javascript and CSS techniques.
For further information, I will recommend to read this article
Find duplicate items in SharePoint
There are some situations when two different users of SharePoint upload same document with two different names. This mostly happens when both of them do not know that someone else has already uploaded same document earlier. SharePoint displays the “[View duplicates]” link when it finds duplicate items for a given search result.
On clicking the “[View duplicates]” link, you will notice that SharePoint searches the duplicate items by creating a keyword query of “duplicate:Full Document Url”
To make our life easier, I have created a Feature which will add a context menu item in ECB and will allow user to directly find duplicates for any item, from the context menu, without first going to the search page.
To get the idea, here is a snapshot of what you will get once our feature is activate:
User will just click on View Duplicates option and will get all the duplicate documents for the selected document.
Implementation:
- Create a folder named ViewDuplicates under FEATURES folder of your SharePoint installation.
- Create a file called Feature.xml under ViewDuplicates folder.
- Paste the following code in Feature.xml:
- Create a file called Elements.xml under ViewDuplicates folder.
- Paste the following code in Element.xml:
- Install the feature by executing stsadm -o installfeature -name ViewDuplicates
- Activate the feature by executing stsadm -o activatefeature -name ViewDuplicates -url <YourSiteCollectionUrl>. Replace <YourSiteCollectionUrl> by the url of your site collection.
- Now, you will get “View Duplicates” option with every document. Click it and Enjoy!
<?xml version="1.0" encoding="utf-8"?>
<Feature Id="960206DD-D07E-4b64-AD8A-3E48D7527060"
Title="View Duplicates"
Description="This feature allows user to view duplicate copies of the selected document."
ImageUrl="CALVIEW.GIF"
Version="1.0.0.0"
Scope="Site"
Hidden="FALSE"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="elements.xml"/>
</ElementManifests>
</Feature>
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Per Item Dropdown (ECB) Link -->
<CustomAction Id="ViewDuplicates.ECBItemMenu"
RegistrationType="List"
RegistrationId="101"
ImageUrl="/_layouts/images/GORTL.GIF"
Location="EditControlBlock"
Sequence="300"
Title="View Duplicates">
<UrlAction Url="javascript:function findDuplicates(){var itemUrl='{ItemUrl}'; var fullUrl=location.protocol+'//'+location.host+itemUrl; window.location.href='/Search/results.aspx?k=duplicates:"'+ fullUrl + '"'};findDuplicates();"/>
</CustomAction>
</Elements>
