Skip to Content
0
Aug 18 at 02:39 PM

Unable to get the role-collection for xs-security.json

75 Views Last edit Aug 18 at 06:34 PM 2 rev

Tutorials: https://developers.sap.com/tutorials/cp-cf-security-xsuaa-create.html
--------------------------
I have uploaded the below xs-security.json mapped to the app-router name in the BTP Canary Environment.
1. The App Router performs the login route.

2. The Backend services are also protected

BUT

3. I am unable to find the role-templates or roles in the Role Collection of the Subaccount
i.e SubAccount->Role Collections-> + (Create New Role Collection) -> Edit -> Select Role -> Application Identifier.

I don't see my XSUAA application name in the dropdown for application identifier.

Any help is appreciated :)

{
    "xsappname": "<app-router-name>",
    "tenant-mode": "dedicated",
    "scopes": [
        {
            "name": "$XSAPPNAME.role_name",
            "description": "role_name description"
        }
    ],
    "attributes": [
        {
            "name": "businessPartner",
            "description": "S/4 BusinessPartner ID assigned to the user",
            "valueType": "string"
        }
    ],
    "role-templates": [
        {
            "name": "role_name",
            "description": "generated",
            "scope-references": [
                "$XSAPPNAME.role_name"
            ],
            "attribute-references": [
                "businessPartner"
            ]
        }
    ],
   "role-collections": [
   {
      "name": "ProductListViewer",
      "description": "Product List Viewer",
      "role-template-references": [
         "$XSAPPNAME.role_name"
      ]
   }
  ]
}

Attachments