cancel
Showing results for 
Search instead for 
Did you mean: 

BTP Cap Launchpad Tile visibility

Dogan
Participant
0 Kudos

Hey guys,

i have deployed mutliple CAP apps to my trial BTP and integrated those apps in my trial launchpad.

I gave myself all needed Roles and Role-Collections, so that i can see all apps(tiles) in my launchpad and all of them are working.

What i want:

Lets say i have two tiles, Tile1 and Tile2, but can only see Tile1 (Tile2 is hidden at the moment). I click on Tile1 and the app opens. Here i perform an action (press a button or check a checkbox) and confirm. With this action my user gets the "right" to see Tile2 in the launchpad. So if i go back to my launchpad, i can now see and click on Tile2.

My question: Is it possible to change the visibility of one tile through another one?

I know that you manage the launchpad apps under Security in the BTP, but i am curious too know if this is possible.

Thanks and regards,

Cemre

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor

I would suggest you check out the documentation:

Access Administration Using APIs of the SAP Authorization and Trust Management Service

So in your case you would implement a functionality in Tile 1 that asks for the user that should be assigned to the Role Collection that contains Tile 2. The CAP app needs then to call the UAA API to do the assignment. When the user does a new login the tile should be visible.

Dogan
Participant
0 Kudos

Hi gregorw,

that seems to be exactly what i am looking for.

I am not that experienced in implementing APIs. Could you give me a hint on what the functionality would look like?

Thanks and regards,

Cemre

gregorw
Active Contributor
0 Kudos

Hi Cemre,

I would suggest you follow the instructions for https://api.sap.com/api/AuthorizationAPI/cloud-sdk/JavaScript or https://api.sap.com/api/AuthorizationAPI/cloud-sdk/Java if you use Java.

Best Regards
Gregor

Dogan
Participant
0 Kudos

Hi gregorw,

i followed the instructions for JavaScript and now the AuthorizationAPI is in my cap project.

Next is the usage example:

To consume the service via the pregenerated typed client library run the code snippet below. For more details about OpenAPI client libraries chose "OpenAPI Consumption Manual" from the "Helpful Links" menu.

import { RoleCollectionsApi } from 'AuthorizationAPI';

const responseData = await RoleCollectionsApi.getRoleCollections().execute({ destinationName:'myDestinationName' });

The problem i have is, if i create a service.js file and paste it in there, i get the error message:

SyntaxError: Cannot use import statement outside a module

How do i continue? What do i have to do, to properly use the AuthorizationAPI?

Thank you for your help!

Best regards,

Cemre

Dogan
Participant
0 Kudos

Hi again gregorw,

I still need help with this problem.

Can you help me out with the implementation?

Maybe you even have an example? That would be great

Thanks and regards

Cemre