Permissions in SmartEdit

SmartEdit uses permissions to control the functionality available to users and user groups.The frontend hides or displays menu items depending on what permissions a principal has. The backend controls whether a principal can execute an operation.

Overview

You can define permissions for principals to control which operations they can perform. SmartEdit recognizes the permission settings and uses them to hide or display buttons or functionality in the UI. The backend performs validations to determine if the principals have the permissions required to perform the operations.

For example: If a principal has permission to synchronize content, SmartEdit displays the catalog version or the page synchronization button. If a principal does not have permission to synchronize content, SmartEdit does not display the synchronization button. Additionally, if you send a REST request to synchronize a page or catalog version with the credentials of a principal who does not have the required permission to synchronize content, the request returns an error.

SmartEdit supports the following permissions:

  • Attribute permissions
  • Catalog version permissions
  • Language permissions
  • Synchronization permissions
  • Type permissions

Permissions have dependencies to each other--with the exception of synchronization permissions. This means that a principal may require a combination of permissions to perform an operation. SmartEdit verifies the catalog version, type, attribute, and language permissions at different levels when SmartEdit makes a request to the backend. The following is the sequence of permission checking when a call is made to the CMS Item API.

The following sections describe the different permission verification scenarios.

Read Permissions to Catalog Version

The principal has read permission to the staged version of the content catalog. The principal signs into SmartEdit and navigates to the homepage of the staged version of the content catalog. SmartEdit doesn't display any buttons that allow the principal to edit, clone, or move the page to trash. Because the principal doesn't have write permission to the catalog version, no other permissions are verified.

Write Permission to Catalog Version and CRUD Permissions for Page Type

The principal has write permission to the staged version of the content catalog. When loading the homepage of the staged version, SmartEdit verifies if the principal has create, read, update, or delete (CRUD) permissions for an item of the AbstractPage type. If the principal has the required permissions, SmartEdit displays the edit, clone, or trash page buttons in the toolbar. SmartEdit doesn't display the buttons of actions that the principal is not authorized to perform. If the principal doesn't have the permissions to create or update an item of the AbstractPage type, no other permissions are verified.

Write Permission to Catalog Version, CRUD permissions for Page Type, Read and Write Permissions forAttributes

The principal has write permission to the staged version of the content catalog, CRUD permissions for the AbstractPage type and can perform CRUD operations on items of the AbstractPage type. When the principal tries to edit the page information of the homepage of the staged version, SmartEdit verifies that the principal has the permission to read or update the value for all attributes defined in the item type.

Write Permission to a Catalog Version, CRUD permissions for Page Type, Read and Write Permissions for Attributes and Languages

The principal has write permissions to the staged version of the content catalog and can perform CRUD operations on items of the AbstractPage type. When the principal tries to edit the page information of the homepage of the staged version, SmartEdit verifies that the principal has permission to read or update the values of all attributes defined in the item type. If the attribute is a localized attribute, that is, if SmartEdit displays a different value depending on the language of the site, then SmartEdit also verifies if the principal has sufficient permissions to read or update the value for the language.

Attribute Permissions

Attribute permissions determine if a principal has access to an item's attributes. In the SmartEdit, attribute permissions determine which fields are displayed to a principal and which fields a principal can edit. For more information, see Attribute Permissions.

Catalog Version Permissions

Catalog version permissions determine if a principal has read or write access to a specific catalog version. They define which features SmartEdit displays to a principal and which features a principal can edit. For more information, see Catalog Version Permissions.

Language Permissions

Language permissions determine if a principal has access to a specific language in a catalog version. SmartEdit uses this information to restrict a principal from accessing the language to which the principal doesn't have access. For more information, see Language Permissions.

Synchronization Permissions

Synchronization permissions determine if a principal can synchronize a content catalog version or any items inside it. For more information, see Synchronization Permissions.

Type Permissions

Type permissions determine if a principal has access to the item type. SmartEdit uses these permissions to determine which types are available to the principal and which types a principal can create, change, or remove while performing different operations. For more information, see Type Permissions.