cancel
Showing results for 
Search instead for 
Did you mean: 

CDS Fiori Elements: How to hide/show cards on overview page based on authorization?

0 Kudos

In an overview page fiori application which is built using ABAP CDS annotation. There are multiple cards on the screen. How can we control the visibility of each card based on the user who login to use the application?

I know that there is a property "requireAppAuthorization" in the manifest.json file. But how to use this property and where is the user list maintained to give authorization for different cards?

Accepted Solutions (0)

Answers (1)

Answers (1)

MioYasutake
Active Contributor

For "requireAppAuthorization", specify the intent as an example below:

"requireAppAuthorization" : "#Action-toappnavsample",

Register the intent in a technical catalog, and based on the technical catalog, register a business role. By assigning a business catalog to a role, you grant users the permission to execute a specific intent. 

 

 

0 Kudos

Hi Mio,

Thank you for explaining me how it is interlinked.

I have created the technical catalog and assigned the target mapping as below:

nikesh_kumarsingh_0-1707395491297.png

And in the card setting of manifest.json I have linked this intent as below:

nikesh_kumarsingh_1-1707395552978.png

 

Now when I'm previewing the application in BAS it is working fine and that card is not visible. But when I deployed my application on Fiori Launchpad that card is still coming. 

Am I missing something here?

Thanks,

Nikesh