Skip to Content
0
Sep 24, 2021 at 08:58 AM

Add multiple roles to Service Keys in SAP CPI Cloud Foundry

377 Views Last edit Sep 24, 2021 at 11:03 AM 4 rev

Hello Team,

I want to create a Service Key for Service Instance of type 'API'

I follow sap help to create a json file to upload to service key.

https://help.sap.com/viewer/368c481cd6954bdfa5d0435479fd4eaf/Cloud/en-US/7a9b282981784f399615b2fda3cda062.html

I want to add multiple roles to a Service Key, like below

{"grant-types": "client_credentials","roles": ["MonitoringDataRead","WorkspaceArtifactsDeploy","WorkspacePackagesEdit","WorkspacePackagesTransport"]}

But when the Service Key is created with above json, I do not see any roles being assigned. Only credentials are created.

Has anyone added role/roles to service key and share json as reference?

Regards,

Archana