on 06-06-2016 9:17 AM
Hi All,
Please share valuable suggestion
How Authorization mechanism for OData service development using CDS via Referenced Data Sources () can achieve for below case ?
Consider 2 User can access this Sales Order oData Service "User1" and "User2" . Now "User1" can view Sales Order of particular set of Customer like "C1" and "C2" and "User2" can view other set of Customer like "C3" and "C4".
Regards,
Jibin Joy
Hi Jibin,
you can define authorization checks within your CDS view.
The new CDS authorization concept exists alongside the classic authorization concept and can be used independently or in combination with the classic concept (Authority-check).
The DCLs (data control language) are an extension of the DDL document that is used to define the CDS view.
A typical example would be the following:
@EndUserText.label: 'Role to view translation objects by language'
@MappingRole: 'true'
ROLE demo_documents {
grant SELECT on demo_translation
WHERE ( targetLang, textType ) = ASPECT pfcg_auth
( S_TRANSLAT, TLANGUAGE, TRANOBJ, ACTVT = '02'); }
Best Regards
Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.