Chapter 20
IN THIS CHAPTER
Creating information management policies
Setting up a Records Center and content organizer rules
Enabling in-place record declaration
Securing a client or partner portal
SharePoint is a great tool for storing documents and managing calendars and contacts. But how do you know your information is secure? Although Microsoft makes sure the actual servers and backend network and servers are secure, managing the security for your SharePoint content falls on you as the site administrator.
When securing your site, you need to perform three basic tasks. We list them here in the order of the frequency you perform these tasks, from most often to seldom:
In this chapter, we explain these three tasks.
SharePoint uses groups to manage the process of granting someone access to the content in a site. Each SharePoint group maps to a set of permissions that define the tasks that a user can perform. Most users fall into one of SharePoint’s three default groups:
A top-level site has a single set of Site Visitors, Site Members, and Site Owners. These three groups are created and named when the top-level site is created. All the apps and subsites that are created below the top-level site use these groups and have the same set of people inside the groups. By default, all the content and subsites in your top-level site have the same permissions, dubbed permissions inheritance.
For people to access your site, you must share it with them by adding them to one of these default groups. For example, to add users to the Site Members group, follow these steps:
Log in to the site as a Site Owner, and then click the Settings gear icon in the upper-right corner of the page and select Site Permissions.
The Site Permissions dialog box appears, as shown in Figure 20-1.
Alternatively, you can add users to groups on the Site Settings page by clicking the People and Groups link in the Users and Permissions section. This setting only appears when the SharePoint Server Publishing Infrastructure feature is activated. To learn more, see Chapter 17.
Click the Invite People button and choose Share Site Only.
You can enter names or email addresses of users that SharePoint can add to the site. If you don’t know the names of user accounts, you can type the email addresses. SharePoint tries to map the email address for the account.
Include a personal message that will be included with the invitation.
This step is optional. If the field is left blank, users will be emailed a generic welcome message.
If you don’t see a dialog to enter a personal message, then email has not been configured for the SharePoint environment.
Click the drop-down menu by the user’s name and choose whether to give full control, edit, or read only access to the site.
By default, the dialog box adds users to the Site Members group. The full control option is the Site Owners group, the edit option is the Site Members group, and the read option is the Site Visitors group.
With Office 365, you have the ability to invite people to use your site who are outside your organization. We discuss using this functionality to create a client or partner portal in Chapter 19.
Members in the Site Owners SharePoint Group create the permission structure for a site. The Site Owner should have a pretty good understanding of which users need to access the site and what that access should be. This means that members of IT usually shouldn’t be Site Owners. Instead, you want members of the business departments to take responsibility for site ownership.
Permissions are contained within a site collection. Therefore, all the people, groups, and permission levels defined for a site collection are available to every site and app within the collection. Permissions inheritance is in place by default, so all the content and subsites in SharePoint inherit permissions from their parents.
When a subsite is created, all the content structures within the site inherit permissions from the site collection. For example, when you create a new site using the Team Site template (see Chapter 1), all the apps in the site inherit permissions from the site collection. The default permissions configuration for a site collection is as follows:
The site collection administrator takes responsibility for planning the permissions. If desired, the site collection administrator can delegate the responsibility of implementing the permissions to the Hierarchy Managers group in publishing sites. In team sites, the owner has to create a new permission level that confers the Manage Permissions permission to those individuals and groups assigned to it.
SharePoint also provides the following set of specialized administrative groups for sites based on publishing templates that enable the site’s owner to delegate responsibility:
In addition to providing several kinds of administrative roles, SharePoint provides the following groups for restricting access:
There are a number of other specialized groups to choose from in addition to the primary groups mentioned here. You can view all of the groups in your site by clicking on the Advanced Permissions Settings link at the bottom of the Site Permissions dialog. The result is the advanced permissions page, as shown in Figure 20-2.
After you know how to add new users to a SharePoint group, finish setting up security for a site collection by doing the following:
Add user accounts to the Site Visitors group.
The Site Visitors group has Read permissions, which enables this group to view the site collection’s content.
Add user accounts or domain groups to the Site Members group.
Members of the Site Members group have Contribute permissions, which allow them to add content to the site collection.
Add users to the Hierarchy Manager and Designers groups in publishing sites.
You may want to create a separate permission level for consultants. SharePoint team sites don’t have these groups by default, but you can create similar groups if you need that kind of role.
Configure unique permissions for content structures in and below the top-level site.
You have to stop inheriting permissions from the top-level site before you can create unique permissions for subsites and apps. See the section, “Creating unique permissions for a subsite,” later in this chapter, for details.
Add subsites to the main site collection site.
You can inherit permissions or use unique permissions when you create the site.
In theory, you could set up security once for a site collection and allow everything to inherit. In reality, you may not want everyone to have the same access. In order to create unique permissions for a site, app, folder, or item, you have to stop inheriting permissions from the parent.
To stop inheriting permissions in a subsite from a parent site, follow these steps:
Browse to the Site Permissions page for a site by clicking the Settings gear icon and choosing Site Permissions and then clicking the Advanced Permissions Settings link at the bottom of the dialog.
The Site Permissions page is displayed with a message reading This website inherits permissions from its parent (<parent site name>).
If you wish to change permissions for the entire site collection, click the <parent site name> link.
Click the Stop Inheriting Permissions button in the Permissions tab on the ribbon.
A message window appears reading, in part, “You are about to create unique permissions for this website.”
Click OK.
The Set Up Groups for this page is displayed. Choose the groups you want to use in the site. By default, the page uses the groups from the site collection.
Click OK to create the new unique groups for the site.
The main home page for the site reloads, and your site now has unique permissions. Repeat Step 1 to return to the Site Permissions page. You see that there is now a This website has unique permissions
message. Any permissions changes you make on this site are now unique to this site. No other sites in the site collection will be affected.
To reinherit permissions from the parent site, choose Inherit Permissions in Step 2. Any changes you’ve made are discarded, and the site inherits the parent’s permissions.
Follow these steps to remove existing permission assignments:
Place check marks next to the permission assignments you want to remove.
Remember to leave yourself with permissions; otherwise, you won’t be able to access the site.
Click the Remove User Permissions button, and then click OK to confirm the deletions.
All the permissions are deleted for the selected permissions assignments.
Allowing a site’s content structures to inherit permissions from the site is usually sufficient. Don’t try to secure everything individually. But at times, you need to secure a folder in an app or limit access to an app. You may want to delegate ownership of an app, thus pushing administrative responsibilities for the app to an app administrator.
To create unique permissions for an app, follow these steps:
Click the Permissions for This Document Library link in the Permissions and Management section.
The Permissions page appears.
Manage the permissions as you would for a subsite by breaking inheritance and managing the permissions uniquely for the list.
Managing permissions on apps is the same as managing permissions for subsites — see the earlier section, “Creating unique permissions for a subsite.”
You can also give unique permissions for an individual document, folder, or list item. You do this by sharing the particular item with a person and selecting their level of permissions in the Share dialog box. Accessing the Share dialog box depends on the item you are sharing. For example, to share a document in the Documents app of a default Team site you select the document and then click the Share button that appears in the ribbon. We will do this in the next procedure.
Follow these steps to give permissions for a document, item, or folder in an app library:
Select the radio button next to a document and then click the Share button in the ribbon, as shown in Figure 20-3.
The Share dialog box appears.
Managing permissions is tricky, and the steps we outline in this section are our recommendations. These aren’t the only ways to manage permissions. Try a scenario to help you better understand permissions. Assume you have a site with the SharePoint groups we outline here.
SharePoint groups |
Members |
Site Members |
John, Bill, and Steve |
Site Visitors |
Mary, Sue, and Sally |
Everything in the site inherits from the top-level site. In this scenario, those in the Site Members group have Contribute permissions, whereas those in the Site Visitors group have Read permissions.
Assume you create a new subsite, and you only want your Site Members to access it. You don’t want Site Visitors to even know the subsite exists. In this case, you create unique permissions on the subsite and remove the Site Visitors group.
Assume you have an app for policy documents, and you want John and Sally to have Contribute permissions. We recommend creating a new Policy Reviewers SharePoint group at your top-level site and then adding John and Sally as members to the group. You aren’t done here, however. You haven’t actually granted the group permission to anything yet. You have to browse to the app, break inheritance from its parent, and then grant the Policy Reviewers SharePoint group the Contribute permission level.
Why not just add John and Sally to the app and grant them the Contribute permission level? That approach will certainly work, but it’s hard to manage. That approach obscures that John and Sally have some permissions granted outside the context of a SharePoint group. We like to be able to look at our SharePoint groups and have a good idea of what the role of that group is, based on their names on the site. If you start adding users individually to subsites, apps, documents, folders, and items, it becomes difficult to get a big-picture view of how your permissions for the site are configured.
You can easily check the permissions for a given group to see everything that group has been granted access to in your site. You must repeat these steps at each site in your site collection. To do so:
Choose Settings ⇒ View Group Permissions.
The View Site Collection Permissions window appears, as shown in Figure 20-5. All the sites, lists, and libraries that the group has permission to access appear in the list.
Sometimes, you just want to know who has permission to do what in a given site. SharePoint provides just such a method:
Browse to the site where you want to check a user’s permissions.
This command only checks permissions within a single site. You have to check each site manually.
Enter the name of the user or group whose permissions you want to check for the current site in the User/Group field, and then click the Check Now button.
The permissions appear in the bottom of the window, as shown in Figure 20-6.
You’ll find a number of different administrator levels in a SharePoint deployment. Administrators usually have full access over the area they’ve been charged with administering. The levels of administrators in SharePoint are:
In Office 365, the server administrator role is replaced by the SharePoint Online administrator. Microsoft Online manages the entire infrastructure for you, so you just have to manage SharePoint Online.
The primary and secondary site collection administrators are determined at the time the site collection is created. Additional site collection administrators can be added to the site collection itself.
To set the site collection administrators for a site:
Click Site Collection Administrators in the Manage section of the ribbon.
The Site Collection Administrators page appears.
Add or remove users from the Site Collection Administrators box by typing in their names or deleting their names using the backspace key, and then click OK.
Users are separated by semicolons.
A site can have all the elements of an authorization model — people, groups, and permissions, in other words — but still not be secure. The deciding factor in securing SharePoint’s content lies with the permission assignments made on securable objects such as sites, apps, folders, documents, and items. A permission assignment consists of permissions, principals (users and groups), and securable objects.
Permissions are the smallest unit for managing security in SharePoint. Permissions confer rights a user may have, such as View Pages rights or Add Items rights. In SharePoint, you deal with following three permission types:
When permissions are managed properly, you never have to work with permissions on a case-by-case basis because permissions are never assigned directly to principals. Rather, they’re assigned to permission levels, which are assigned to default SharePoint groups. You can also assign permission levels directly to user accounts or custom SharePoint groups you create.
Follow these steps to view a list of permission levels for a site:
Browse to the site where you want to check a user’s permissions.
This command only checks permissions within a single site. You have to check each site manually.
Click Advanced Permissions Settings at the bottom of the dialog.
Note that this shows up only when the Permission Levels button on the ribbon is clicked (Step 4).
If you’ve assigned permission levels to user accounts or domain group accounts outside SharePoint groups, you see them listed here.
Each site inherits its site permission assignments from its parent site or has its own unique permission assignments.
Click the Permission Levels button on the ribbon.
The Permission Levels page appears, as shown in Figure 20-7. You can use this page to create new permission levels or modify existing ones. You will only see the Permission Levels button in the ribbon if you have broken inheritance. Otherwise, the site inherits permissions from the parent, and to see the Permission Levels button you need to go to the parent where those permissions originate.
Click a permission level, such as Contribute, to view or modify the permissions in the permission level, as shown in Figure 20-8.
Note: The permissions you see might not be the entire set of permissions available in SharePoint. The server administrator can limit the list of permissions available to a web application using Web Policies.
Table 20-1 lists the permission levels, the rights they grant, and the SharePoint group they’re assigned to by default. Note that the last four permission levels are specific to sites with the Publishing Infrastructure Feature active.
TABLE 20-1 Permission Levels
Permission Level |
Rights Granted |
SharePoint Group Assigned to by Default |
Full Control |
Wield administrative access |
Site Owners |
Design |
Change the site’s look and feel |
Designers |
Edit |
Add, edit, and delete apps as well as the items and documents contained within the apps |
Site Members |
Contribute |
Add and modify content |
Site Members |
Read |
View all content, including history |
Site Visitors |
Limited Access |
Open (same as guest access) |
Quick Deploy Users |
View Only |
View items and pages |
Viewers |
Approve |
Approve content |
Approvers |
Manage Hierarchy |
Manage the site’s structure and permissions (this is only available in the site collection when the SharePoint Server Publishing Infrastructure feature is active) |
Hierarchy Managers |
Restricted Read |
View and open |
Restricted Readers |
Restricted Interfaces for Translation |
Open apps and use remote interfaces |
Restricted Interfaces for Translation |
SharePoint security is a broad topic. As you have seen, in SharePoint, you can create groups, add roles, and set permissions. You can add users to those groups and set permissions for sites and apps.
Throughout this chapter we have accessed these settings by using the Settings gear icon and choosing Site Permissions. When you have the Publishing Infrastructure feature activated, a number of new links appear in the Site Settings page. These new links are included in the Users and Permissions section and include the following settings pages:
The biggest hurdle to locking down a partner portal is figuring out permissions. You need to determine which users have access and what they can do on the site. So you need to understand what SharePoint permissions are and how they are assigned, which we cover in this chapter. In Chapter 19, you learn about creating a partner portal, and that by default when creating a portal, you give users access to the site to edit and collaborate with you. This is generally fine, but be aware you can go much more granular for a partner portal should you choose.
Working with users and groups in a SharePoint site is the same, regardless of whether you use SharePoint On-Premises or SharePoint Online. The main difference is in how users are created and managed outside of SharePoint. In other words, what you have to do to make users available to SharePoint. After users are available to SharePoint, the experience within a SharePoint site is identical.
After you realize how easy it is to create a new group, you may want to explore the types of permission levels you can assign to new groups. Earlier in the chapter we edited the Contribute permission, but you could just as easily have created a new permission instead of using the Contribute permission. To create a new permission level:
Browse to the site where you want to check a user’s permissions.
This command only checks permissions within a single site. You have to check each site manually.
Click the Add a Permission Level button at the top of the page that lists all the built-in permission levels.
The Edit Permission Level page allows you to create a new permission level that can be assigned to your group. The Add a Permission Level link only shows up if you are at the Site Collection level because that is where permission levels are located.
After you create a new permission level, you can use that level to assign your groups the correct permissions. After you do that, it’s as easy as adding members to the particular group that gives them the appropriate access to your portal.