Primary

Posts and Pages

Access to posts and pages can be restricted by capability. Any capability can be used to restrict access, including new capabilities.

When access to a post is restricted, only users who belong to a group with that capability may access the post.

Use the Access restrictions box to control access to your posts and pages. You can choose the quick or the manual way to do it:

Using the quick-create field

This is the recommended quick way:

  1. Edit your post, page or document.
  2. Select one or more capabilities that are enabled for access restriction. Note that you must be a member of a group that has such a capability assigned.

Using this quick-create field, you can create a new group and capability.

The capability will be assigned to the group and enabled to enforce read access.

Example:

Let’s assume that you want to limit the visibility of a post to members of the Advanced group.

  1. Edit your post;
  2. Enter Advanced in the quick-create field located in the Access restrictions panel.

Quick-creating Advanced group and capabilityNow save or update the post (or hit Enter).
Advanced group and capability

A new group named Advanced with the capability advanced was automatically created.

advanced-capability

Group names are case-sensitive, the name of the capability is the lower-case version of the name of the group.

  • If the group already exists, a new capability is created and assigned to the existing group.
  • If the capability already exists, it will be assigned to the group.
  • If both already exist, the capability is enabled to enforce read access.

In order to be able to use the capability, your user account will be assigned to the group.

Using the manual way

Try the quick-create field first. Unless you need a more complex setup, there is no reason to go this way instead.

1) Go to Groups > Groups and add the Basic group.

add-group

2) Go to Groups > Capabilities and add the basic capability.

add-capability

3) Go to Groups > Groups > Edit a group to assign the basic capability to the Basic group.

Screen Shot 2015-04-09 at 17.31.56

4) Go to Groups > Options and enable the basic capability to restrict access;

Screen Shot 2015-04-09 at 17.33.53

5) Become a member of the Basic group – this is required so you can choose the basic capability to restrict access to a post. (Go to Users > Groups)

6) Edit the post for which you want to restrict access and choose* the basic capability.

Screen Shot 2015-04-09 at 17.34.52

* For each capability, the groups that have the capability assigned are shown within parenthesis. You can choose a capability by typing part of the group’s or the capability’s name.

Access control

Groups allows you to restrict access by using the capabilities of any group previously added.

Example:

We’ve the Basic (basic) and the Advanced (advanced) group.

all-groups

Edit one of the groups and assign it the capability of the other group;

Screen Shot 2015-04-09 at 21.04.05

In the above example, we’ve assigned the capability basic to the Advanced group.

Now, users belonging to the Advanced group could also access those files authorized for the Basic group.

Screen Shot 2015-04-09 at 20.37.05

You can also restrict access by using the Subgroups inherit capabilities.