In SAP Fiori On-Premise, not the new Cloud version running on HCP, we can define the SAP Fiori default theme for a specific user in SU01. We just need to edit User Parameters and add a new entry for /UI2/USER_PROFILE = “theme.id”.
But, how to do the same in SAP Fiori, cloud edition???
I know users can access the FLP and select which theme they want to use. I also know that now we can have multiples FLPs with different configurations. But I would like to use only one FLP and define the default theme dynamically. Let’s say, one group of users see theme X and another group see theme Y.
I checked what happens when we change the default theme as an user, through the User Preferences menu.


When we change our theme,the FLP sends an HTTP POST request to:
https://flpportal-myAccount.dispatcher.hanatrial.ondemand.com/fiori/cp/runtime/v1/sites/myFLP-GUID
The payload is a json like the one below which constains a propertie with the selected theme.id:
{
"personalizedSite": { "pages": [],
"apps": [],
"properties": [
{
"key": "theme.id",
"value": "sap_bluecrystal"
}
],
"deletedApps": [],
"documentModel": true
}
}
And now, last but not least, every time we access the FLP, an HTTP GET request is sent to:
https://flpportal-m yAccount .dispatcher.hanatrial.ondemand.com/fiori/cp/runtime/v1/sites/myFLP-GUID{
"personalizedSite": {
"properties": [
{
"key": "theme.id",
"value": "sap_bluecrystal"
}
]
}
}
More questions now.
Where is the “theme.id” stored? Is possible to assign it to a role? Is possible to assign it to an user manually?