This blog explains how we can hide or change the order of the group displayed for a particular user in Fiori 2 dynamically.
Scenario: If a user wants to the view fiori Launchpad with different groups when accessed from different devices. Example: A mobile app which opens fiori launchpad which should show only the approval apps even though the user has authorization to many other fiori apps. Another mobile app which should show only HCM related apps in the launchpad. So dynamically we have to change the order or we have to hide the group before viewing fiori launchpad.
Solution: In Fiori 2 there is an option to hide or show the groups from the edit option in the launchpad. So here also we are using the same standard OData service to change the group order or to hide any group. So each time when you call launchpad from the mobile app you should call the below OData service first.
X-CSRF-TOKEN = fetch (fetch the token first and place here)
Authorization = username / password
Accept = application/json
Content-Type = application/json
Response Status: 204
I had a similar requirement, so thought of sharing this solution.