Incorrect role mapping in published application

When publishing an application, the role mapping in the live app might be incorrect if the application profile for the live app is different from the default development profile. If the app contains the virtual-roles.json file, the default development profile is used instead of the profile for the live app when the app is published.

The workaround is to edit the app to remove the app's virtual-roles.json file, and then restage or republish the app.