Ansicht
Dokumentation

ABENCDS_DCL_ROLE_GRANT_RULE - CDS DCL ROLE GRANT RULE

ABENCDS_DCL_ROLE_GRANT_RULE - CDS DCL ROLE GRANT RULE

BAL Application Log Documentation   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

- DEFINE ROLE, grant_rule

GRANT SELECT ON cds_entity $[REDEFINITION$];

Effect

Full access rule in the statement DEFINE ROLE in CDS DCL. A full access rule GRANT SELECT ON without the addition WHERE provides access to a CDS entity cds_entity without conditions. If cds_entity is specified, the same applies as for a conditional access rule.

The addition REDEFINITION prevents further REDEFINITION rules from being created for the same CDS entity and letting their activation fail.

Notes

  • For a CDS entity, a full access rule has the same effect as when there is no role for the CDS entity or when CDS access control is forbidden for this CDS entity by using the annotation @AccessControl.authorizationCheck:#NOT_ALLOWED or by using the annotation WITH PRIVILEGED ACCESS in the FROM clause of an query when the entity is accessed.
  • SAP does not deliver any CDS roles with full access rules. Partners and customers can use full access rules to override roles supplied by SAP.

Example

The following CDS role specifies that all users can access the CDS view DEMO_CDS_AUTHORITY_FULLACCESS without access conditions:






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 2596 Date: 20240508 Time: 050513     sap01-206 ( 39 ms )