Yes of course when you use the generic deploy to cf we don't do any SAP specific actions.
What we do is that on every deploy that you make from SCP, we update the xsuaa module since the roles could have been changed in your latest deployment package ( like adding a new role to the app)
This is the format that we use to update the xsuaa module:
{
"xsappname": <YOUR_APP_NAME>,
"scopes": [
{
"name": "$XSAPPNAME.user",
"description": "user"
},
{
"name": "$XSAPPNAME.administrator",
"description": "Admin"
}
],
"attributes": [],
"role-templates": [
{
"name": "User",
"description": "User",
"scope-references": [
"$XSAPPNAME.user",
"uaa.user"
]
},
{
"name": "Administrator",
"description": "Administrator",
"scope-references": [
"$XSAPPNAME.administrator",
"uaa.user"
]
}
]
}
and the xsappname should be changed to their actual app name
and like the example, you also need to manually write all the roles both in the scopes and in the role-templates, (it's case sensitive)