Solved

SharePoint 2010 Developer Dashboard Permissions

Posted on 2014-04-18
7
523 Views
Last Modified: 2014-04-24
I am trying to troubleshoot slow page loads and have been reading about the Developer Dashboard and how it could provide helpful information which I could pass along to our Web Team.

I have never used the Developer Dashboard before and have read article online on how to enable it but my question is that I do not want all users in my organize to see this information at the bottom of the page. I only want this information to be viewable to myself.

if this cannot be done, is there any other way for me to see what items are closing a page to load slowly or what web parts are being called
0
Comment
Question by:compdigit44
  • 4
  • 3
7 Comments
 
LVL 15

Accepted Solution

by:
colly92002 earned 500 total points
ID: 40010482
Use can use security trimming to manage who can use the developer dashboard.

See here for and example of setting permission via powershell:
http://www.sharepointboco.com/developer-dashboard-sharepoint-2010/


Here is a list of possible permissions levels (these map to the possible permission levels in the Sharepoint "Access Level" screen, part of the "permissions" options):
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx

You probably want to use "ManageWeb".
0
 
LVL 19

Author Comment

by:compdigit44
ID: 40015213
I am sorry for the delay in getting back to you.

Ok, I opened SharePoint Designer and noticed our web team is using a master page that is from a third party  infowise and bamboo but after looking at the code "I believe" I see references to Developer Dashboard so I think I am on the right track.

My account is a farm admin and I did run the stsadm command to enable the Dashboard yet when I when to the main page nothing was displayed at the bottom of the screen,

I did read the links that you posted earlier but have to admit they when above my head.

I am trying this in our test environment first before doing it in production. The last thing I want to do is enable this and have all users see this information.

I wish there is a easy way via to GUI or powershell to say. User X and only X can see Dashboard info and no one else
0
 
LVL 15

Expert Comment

by:colly92002
ID: 40015629
If you have a custom masterpage it is possible  that the developer dashboard delegate control is NOT in the masterpage, in which case enabling it is not going to do anything.

Check your masterpage for the following markup:

<span class="s4-devdashboard">
			<Sharepoint:DeveloperDashboardLauncher
				ID="DeveloperDashboardLauncher"
				NavigateUrl="javascript:ToggleDeveloperDashboard()"
				runat="server"
				ImageUrl="/_layouts/images/fgimg.png"
				Text="<%$Resources:wss,multipages_launchdevdashalt_text%>"
				OffsetX=0
				OffsetY=222
				Height=16
				Width=16 />
		</span>

Open in new window



If this does not appear to be in your masterpage, then in your test environemtn you can use SPD to copy the curent masterpage to a new file, and add it to it in the appropriate place.  It normally appears at teh end of the ribbon markup, just before:

</SharePoint:SPRibbonPeripheralContent>
		</SharePoint:SPRibbon>

Open in new window





To switch it on, just use the script in this blog:
http://clarkupdike.blogspot.co.uk/2011/02/powershell-script-for-setting.html

To enable it for site admins only, change line 47 to:
$ddsetting.RequiredPermissions = 'ManageWeb'

Open in new window

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 19

Author Comment

by:compdigit44
ID: 40015714
This is what I am seeing in part of my master page:

runat="server"
				Location="TabRowRight"
				ID="RibbonTabRowRight"
				CssClass="s4-trc-container s4-notdlg"><SharePoint:DelegateControl runat="server" ID="GlobalDelegate0" ControlId="GlobalSiteLink0" /><a href="#" tabindex="-1" style="display:none"></a><a href="#" tabindex="-1" style="display:none"></a><div class="s4-trc-container-menu"><div><wssuc:Welcome id="IdWelcome" runat="server" EnableViewState="false">
			</wssuc:Welcome><wssuc:MUISelector ID="IdMuiSelector" runat="server"/></div></div><SharePoint:DelegateControl ControlId="GlobalSiteLink2" ID="GlobalDelegate2" Scope="Farm" runat="server" /><span><span class="s4-devdashboard"><Sharepoint:DeveloperDashboardLauncher
				ID="DeveloperDashboardLauncher"
				NavigateUrl="javascript:ToggleDeveloperDashboard()"
				runat="server"
				ImageUrl="/_layouts/images/fgimg.png"
				Text="<%$Resources:wss,multipages_launchdevdashalt_text%>"
				OffsetX=0
				OffsetY=222
				Height=16
				Width=16 /></span></span></SharePoint:SPRibbonPeripheralContent></SharePoint:SPRibbon>

Open in new window

0
 
LVL 15

Expert Comment

by:colly92002
ID: 40015975
That looks fine.  Log on to your test server and open up a powershell (from the Sharepoint Management Shell option in the Sharepoint start menu) and run the commands above.  The best thing to do is create a new script file.

to do this:
1) create a new file n teh root of the C: drive called "EnableDD.ps1"
2) copy the code below into this file and save it.
3) start a Sahrepoint Management Shell
4) type:   cd C:\
5) type .\EnableDD.ps1
6) Choose "D" (for on demand).

You should now get an icon next to you name on the ribbon.  Only administrators will get this.  Run the script again to switch it off.


$svc=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
 
$ddsetting=$svc.DeveloperDashboardSettings
 
$choiceOnDemand = New-Object System.Management.Automation.Host.ChoiceDescription `
        "On &Demand","Dashboard can be toggled via icon near Welcome Menu"
$choiceOn = New-Object System.Management.Automation.Host.ChoiceDescription `
        "&On","Dashboard is on for all pages"
$choiceOff = New-Object System.Management.Automation.Host.ChoiceDescription `
        "O&ff","Dashboard is off"
 
$choices = [System.Management.Automation.Host.ChoiceDescription[]]($choiceOnDemand, $choiceOn, $choiceOff)
$caption = "Specify Developer Dashboard Setting for Farm"
$message = "Current the dashboard is: $($ddsetting.DisplayLevel)"
$result = $Host.UI.PromptForChoice($caption,$message,$choices,0)
 
switch ($result) {
    0 { Write-Host 'Dashboard is now On Demand, toggle via icon near Welcome Menu'
        $ddsetting.DisplayLevel=[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand
        break
      }
      
    1 { Write-Host 'Dashboard is now On' 
        $ddsetting.DisplayLevel=[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::On
        break
      }
    2 { Write-Host "Dashboard is now Off"
        $ddsetting.DisplayLevel=[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::Off
        break
      }
       
    default { throw "Developer Error"}
}
 
if ($result -ne 2) {
  $ddsetting.TraceEnabled = $true
  Write-Host @"
  Trace was also enabled.
  Note: v3 interface requires this on the master page for the Dashboard to render:
     <SharePoint:DeveloperDashboard runat="server" />
"@
} else {
    $ddsetting.TraceEnabled = $false;
    Write-Host "Trace was also disabled."
}
 
$ddsetting.RequiredPermissions = 'ManageWeb'
 
$ddsetting.Update()

Open in new window

0
 
LVL 19

Author Comment

by:compdigit44
ID: 40015980
When you mean adminmistrator do you mean farm admins? Any this be targets to just one users. I have other people who have admin rights in Sharepoint of which I do not want them to see this information
0
 
LVL 15

Expert Comment

by:colly92002
ID: 40016334
"ManageWeb" equates to a Site Collection Administrator.  It is the highest level of permission available in Sharepoint.  You cannot security trim to a user (or AD group) level - it has to be one of the permission levels here:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spbasepermissions.aspx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now