The Telerik Platform product is retired.Learn more

Changing a Content Type's Security Policy

Changing a Content Type's Security Policy

When you don't need role-based permissions, you can use the Backend Services RESTful API to set a content type's security policy.

To change the security policy of a type you can make a request to the /Security endpoint for the type. This example sets the security policy to 1 which stands for Private (see the table below the code snippet for other values):

var updateObject = {
    SecurityPolicy: 1
    url: ''
    type: "PUT",
    headers: { "Authorization" : "Masterkey your-master-key" },
    data: JSON.stringify(updateObject),
    success: function(data){
    error: function(error){
    Authorization  Masterkey your-master-key
Payload - raw:
        SecurityPolicy: 1
    Status: 200 OK
    Content-Type: application/json

The following table lists the possible values for the SecurityPolicy parameter:

SecurityPolicy Value Permission
1 Private (read yours, write yours)
2 Shared (read all, write yours)
3 Public (read all, write all)
4 Read-only (read all, write none)
10 Custom (corresponds to role-based permissions*)
*For setting a custom set of role-based permissions, see Introduction to Roles.
Contact us: +1-888-365-2779
Copyright © 2016-2018, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.