Skip to content

Authorization Policies

Authorization policies grant the right to perform actions on protected resources in an application. They can be assigned to users to control access to various parts of the application.

Developers can define a set of base policies that can be assigned directly or used as building blocks to create additional policies during runtime by the application administrators.

DCL

Authorization policies are defined in a domain-specific language called Data Control Language (DCL) that supports conditions that can be used to grant fine-grained access to resources.

Example

Here is an example of authorization policies defined in DCL:

dcl
SCHEMA {
   country: String;
}

POLICY ReadSalesOrders {
    GRANT read ON SalesOrders WHERE country IS NOT RESTRICTED;
}

POLICY SalesOrderDE {
    USE ReadSalesOrders RESTRICT country = 'DE';
}

Specification

The complete specification for DCL can be found in the SAP Help Portal.