cancel
Showing results for 
Search instead for 
Did you mean: 

Access Protection for Custom CDS Views

former_member306668
Participant
0 Kudos

Hi there;

Just wondering if someone could explain the meaning of Access Protection in CDS Views?

Thanks

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

Amith_Nair
Advisor
Advisor

Hi

Just to add my 2 cents here: There are 2 levels, privileged and protected. Privileged means that you can't see the data, and can't access the data through odata. It can only be accessed via an association in a protected CDS View

For "Protected" views, you will require an extra Business role to be able to see the data. So as an example if it is some view that is protected and is based on "Business Partners" You may require a role like SAP_BR_BUPA_MASTER_SPECIALIST  to give you access to the data.

Here is a Help document that explains the same: https://help.sap.com/viewer/9a281eac983f4f688d0deedc96b3c61c/1809.000/en-US/4356ae3e6a994e119c0532ab...

Thank you! Amith Nair

former_member306668
Participant
0 Kudos

Thanks for this. The obvious question now is where can we found which business catalog(s) are required for access a "Protected" view?

Regards

Thomas

Answers (1)

Answers (1)

Prateek_Agarwal
Participant
0 Kudos

Hi Thomas,

As far as I understand, Access Control in CDS view are used to control or rather restrict the data returned from the CDS entity. It is away of exercising authorizations while building the ABAP CDS. Everytime we build a custom CDS view using the existing ones, these 'Access control relevant fields' are automatically added to the custom CDS view to facilitate the authorization concept.

I found this article on Access Control, which might be helpful to you.

https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/abencds_authorizations.htm