Security Trimmed Controls in SharePoint


Let’s say you have a control on your page that you want only a certain group of users to see. Fortunately, SharePoint has a built-in control that lets you hide controls to which users do not have the necessary permissions.  This control is the SPSecurityTrimmedControl.
<Sharepoint:SPSecurityTrimmedControl runat=”server” Permissions=”ManageLists”>
Place your control(s) here
</SharePoint:SPSecurityTrimmedControl>
All you have to do is wrap your control with this security control and set the correct permissions in the Permissions attribute. The Permissions attribute, when used in Visual Studio or Designer, will have intellisense and will be filled with the following properties obtained fromhttp://msdn2.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx.  Whatever permissions you specify will be required by the user in order to view the control(s) inside of the SPSecurityTrimmedControl:

AddAndCustomizePages
AddDelPrivateWebParts
AddListItems
ApplyStyleSheets
ApplyThemeAndBorder
ApproveItems
BrowseDirectories
BrowseUserInfo
CancelCheckout
CreateAlerts
CreateGroups
CreateSSCSite
DeleteListItems
DeleteVersions
EditListItems
EditMyUserInfo
EmptyMask
EnumeratePermissions
FullMask
ManageAlerts
ManageLists
ManagePermissions
ManagePersonalViews
ManageSubwebs
ManageWeb
Open
OpenItems
UpdatePersonalWebParts
UseClientIntegration
UseRemoteAPIs
ViewFormPages
ViewListItems
ViewPages
ViewUsageData
ViewVersions

** You can also use the PermissionsString property to use a comma seperated list. ORG Link
Advertisements

Configuration Wizard fails: Specified value is not supported for the {0} parameter


When running the SharePoint 2010 Foundation Products Configuration Wizard you may get an error that the Configuration Database couldn’t be created (even if the System_Config DB is created on the database server).

Error: Exception: System.ArgumentException: Specified value is not supported for the {0} parameter.

Solution:

I am using Domain username and password for installation but Domain Controller is not accessible during the time of running the configuration wizard. Plugging in the network cable or connect the domain network and rerunning the wizard solved the problem.

 

SharePoint 2010 Installation in Sql 2012: Could not find stored procedure ‘sp_dboption’.

Tags


Could not find stored procedure 'sp_dboption'

sp_dboption

Solution:
Download and install SharePoint Server 2010 SP1. Reboot is required. If the farm already exists, you must run upgrade actions in the farm to fully patch all of the servers. After SP1 is applied, you can retry the operation you were attempting when the error occurred.

SharePoint 2010 Prerequisites Installer Error: KB976462 Could Not Be Installed

Tags


I faced a problem during the installation of the prerequisites of SharePoint 2010 Enterprise.
Error: The tool was unable to install Hotfix for Microsoft Windows (KB976462).
Solution :
Download and install the KB976462
http://archive.msdn.microsoft.com/KB976462/Release/ProjectReleases.aspx?ReleaseId=4317

 

Re run the Prerequisites  🙂

Hide the SiteActions in SharePoint 2010


These are the two ways to hide the Site actions .

  1. If you want to restrict the SiteActions based on the user permission we can do via “SharePoint:SecurityTrimmingcontrol”

(eg)

<Sharepoint:SPSecurityTrimmedControl runat=”server” Permissions=”AddAndCustomizePages”> SiteActions Code </Sharepoint:SPSecurityTrimmedControl>

This control Hide Ribbon for Anonymous Users – Only the editor if logged in would be able to see the ribbon.

2. Direct method to hide the SiteActions to all users including the Full Control permission users using css like below.

.ms-siteactionsmenu{display:none;}

Sharepoint 2010 Error: An exception occurred when trying to issue security token Event ID 8306 and Event ID 7557


Event ID 8306: An exception occurred when trying to issue security token: The server was unable to process the request due to an internal error.

Event ID 7557: The Secure Store Service application Secure Store Service Application is not accessible. The server was unable to process the request due to an internal error

Solution was that the ‘Claims to Windows Token Service’ wasn’t started on the Sharepoint server. Start the service .

Clamis-Windows Service

SharePoint 2010: Error 7043 “Load control template file /_controltemplates/TaxonomyPicker.ascx failed”

Tags

,


Load control template file /_controltemplates/TaxonomyPicker.ascx failed: Could not Event viewer Error : load type ‘Microsoft.SharePoint.Portal.WebControls.TaxonomyPicker’ from assembly ‘Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’.

Resolution
This is not causing any issues except for a wrong ULS log message a single time in a web application process life time, the exception is caught and that template file is skipped. This message should be treated as log noise and can be ignored.
To change this behavior:

Navigate to /14/TEMPLATE/ControlTemplates/TaxonomyPicker.ascx user control
Open the user control in a text editor and locate the first line
Find the character string , [in First line itself] and replace with a comma ‘,’ (without quotes).
Save the user control.

For more information click here

Connecting Tikona from WiFi mobile

Tags

, , , ,


Hi all,

Connecting tikona from wifi mobile using following steps…

1.click settengs
2.turn on ur Wifi
3.go to wifi settengs and scan for tikona wifi
4.you will see that tikona is using a security-802.1x enterprise
5.EAP METHOD- select TTLS
Phase 2 Authentication: select PAP
Identity-Your tikona wireless login username e.g. 11025xxxxx
Wireless Password-your password
anonymous identity: none(do not type this)

… Cheers…