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

Add multiple roles to Service Keys in SAP CPI Cloud Foundry

862 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.

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?