cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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"
      ]
   }
  ]
}

Accepted Solutions (0)

Answers (1)

Answers (1)

Colleen
Advisor
Advisor
0 Kudos

not sure if missing in your screen shot but the tutorial contains role collection

	"role-collections": [
		{
			"name": "ProductListViewer",
			"description": "Product List Viewer",
			"role-template-references": [
				"$XSAPPNAME.Viewer"
			]
		}
	]
}
0 Kudos

Forgot to paste, added to the question. Although I see the Role Collection but I dont see any Roles attached to it, neither can I Add any Role to it.