Reader small image

You're reading from  Microsoft SharePoint 2010 Administration Cookbook

Product typeBook
Published inJan 2011
Reading LevelIntermediate
PublisherPackt
ISBN-139781849681087
Edition1st Edition
Languages
Right arrow
Author (1)
Peter Serzo
Peter Serzo
author image
Peter Serzo

Peter Serzo is an English major from Kent State who started his technical career with EDS out of college. 20 years later, all as a consultant, he is a national speaker regarding to SharePoint having worked at organizations of all sizes. His next challenge is to bring SharePoint to children and teach them. He has been working with SharePoint since 2003 in companies such as Microsoft, Ford, ADP, and many others throughout the United States. He is a Senior SharePoint Architect for High Monkey Consulting. The name refers to an old Jamaican proverb that means the higher up you go, the more responsible you must be; High Monkey takes pride in its accountability and excellence of work in regards to its clients' needs.
Read more about Peter Serzo

Right arrow

Chapter 7. Security Administration: Users and Groups

In this chapter, we will cover:

  • Adding a user via PowerShell

  • Delegating PowerShell permissions

  • Checking effective permission user interface

  • Setting Lockdown Mode for publishing sites

  • Configuring Site Collection audit settings

  • Accessing security policy reports

Introduction


Security of the SharePoint Farm is critical to the health and governance of the SharePoint implementation. It is important to understand the varied ways in which SharePoint can be secured.

The term secured in this chapter pertains to what information and permissions users need in order to be effective. As an administrator, it is critical to be able to determine who did what and when.

Successful server hardening depends on planning an appropriate server topology and logical architecture. This architecture is then implemented into the physical navigation and creation of libraries and lists. This should provide the appropriate isolation of data.

SharePoint groups can then be created, which follows the physical topology of the site.

Adverse issues with security will not just affect the ability for users to access content, but will also allow these items to be visible in people's searches. In real world terms, if employment data is saved in SharePoint, this information may be available...

Adding a user via PowerShell


When SharePoint is initially set up, many users may need to be added to SharePoint groups for a new site. The quickest and most efficient way to accomplish this is through PowerShell and scripting.

The following recipe shows how to add a user to a SharePoint group via PowerShell.

Getting ready

The user must have access to one of the servers running PowerShell 2.0 and be a member of the WSS_ADMIN_WPG on the local computer. You must also be a member of the SharePoint_Shell_Access role on the configuration database (SQL Role).

There must be an existing site, a SharePoint group called TestAddUser, and a user named jdoe set up in the active directory.

How to do it...

  1. 1. Click on the Start button on the web front end.

  2. 2. Under All Programs, navigate to the Microsoft SharePoint 2010 Products folder.

  3. 3. Right-click on the SharePoint 2010 Management Shell option and click Run as Administrator. The PowerShell console will appear.

  4. 4. Type the following command into the console...

Delegating PowerShell permissions


One of the many promises SharePoint 2010 delivers on is the empowering of users. In other words, SharePoint 2010 allows an administrator to delegate responsibility down to the other administrative user. The concern with doing this is exposing other administrative tasks. Just because someone can manage an application, such as Search, does not mean they should be able to manage other service applications. SharePoint 2010 handles this without putting at risk the security of the other components. Farm Administrators can designate users to manage their own service application, as we have seen in Chapter 2. This is done through the management UI of each service application. Taking this management one step further, a Farm Administrator can designate a user with the ability to run PowerShell commands against their particular service(s) from their own machines.

The least privileged account model in SharePoint has been taken to another level. Users have access to...

Checking effective permission user interface


Once SharePoint 2010 is rolled out into an environment, it takes on a life of its own. Team sites, project sites, and other collaboration sites are created to fit the pressing business needs.

Along with each of these sites, security may be manipulated by breaking inheritance. This type of granularity breeds complexity. Sites are provisioned but not decommissioned due to the sheer number of sites. It is a common request from users to know what sites they have access to and what permissions they have on those sites. There is functionality within sites that provides such information.

The following recipe shows how to use this functionality.

Getting ready

You must be a site owner or site collection administrator.

How to do it...

  1. 1. Navigate to the desired team site.

  2. 2. Click Site Actions and then Site Permissions.

  3. 3. Click the Check Permissions option on the ribbon.

  4. 4. The following screen pops up:

  5. 5. Enter the name of a user or group.

  6. 6. Click Check Now. The...

Setting Lockdown Mode for publishing sites


When implementing external facing sites, it is critical that administrators be aware of what users can do under given conditions.

A common scenario on a site is to have a blog or article page and then have a comments section below it. In the SharePoint terminology, this implies that anonymous users can write back to a list. Think about this, a viewer of your site has the ability to add an item to a list (in the form of a comment).

By default, if the root site is a blog site, anonymous users can add comments. However, if a site collection is based on the publishing portal, they will not be able to add comments or articles to a blog that lives under the site collection.

In this recipe, we will see how to manipulate the feature that will enable anonymous users to add comments to a blog or article.

Getting ready

You must have access to one of the servers running PowerShell 2.0 and be a member of the WSS_ADMIN_WPG on the local computer. You must also be...

Configuring Site Collection audit settings


Often in a SharePoint site, it is important to know who is doing what and when. For instance, in a publishing site, sometimes users do things they don't mean to do and it is important to audit these events.

In many cases, it is mandatory to be able to track what happens to a document—especially in the case of sensitive company information, information related to ISO certifications, or some other type of industry standard.

In this recipe, we will show how to enable the settings at a site collection level so that all actions may be tracked. These include checking in a document, checking out documents, deletes, additions, and modifications to items.

Getting ready

You must have site collection owner privileges.

How to do it...

  1. 1. Navigate to the desired team site, which is the root site collection.

  2. 2. Click on Site Actions and then Site Settings.

  3. 3. Under Site Collection Administration, click Site collection audit settings.

  4. 4. The following form will be displayed...

Accessing security policy reports


In the previous recipe, we configured the auditing settings. We need to read this information and evaluate what is happening on our site.

The security policy reports show us what is going on in our sites. In this recipe, we will show how to run the reports.

Getting ready

You must have site collection owner privileges.

How to do it...

  1. 1. Navigate to the desired team site, which is the root site collection.

  2. 2. Click on Site Actions and then Site Settings.

  3. 3. Under Site Collection Administration, click Audit log reports.

  4. 4. Scroll to the bottom of the resulting screen. It should be similar to the following screenshot:

  5. 5. Click Auditing settings.

  6. 6. A form pops up with a text box where we must put a save location for the report. Using the Browse button, navigate to Shared Documents.

  7. 7. Click OK.

  8. 8. A screen will appear with a link to the generated report, click this link. The report will appear in the Excel format.

How it works...

These reports are fed by the previous recipe...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Microsoft SharePoint 2010 Administration Cookbook
Published in: Jan 2011Publisher: PacktISBN-13: 9781849681087
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Peter Serzo

Peter Serzo is an English major from Kent State who started his technical career with EDS out of college. 20 years later, all as a consultant, he is a national speaker regarding to SharePoint having worked at organizations of all sizes. His next challenge is to bring SharePoint to children and teach them. He has been working with SharePoint since 2003 in companies such as Microsoft, Ford, ADP, and many others throughout the United States. He is a Senior SharePoint Architect for High Monkey Consulting. The name refers to an old Jamaican proverb that means the higher up you go, the more responsible you must be; High Monkey takes pride in its accountability and excellence of work in regards to its clients' needs.
Read more about Peter Serzo