Skip to Content
Technical Articles
Author's profile photo Nils Janßen

Customize User Information for flpSandbox testing

Hi SAP community,

this is my very first blog post so please bear with me and any feedback is greatly appreciated. It will be rather short as well beause this is just some type of information that I think might come in handy for some people but I did not find it anywhere.

Recently I changed my development infrastructure from WebIDE to VSCode and the Fiori Tooling. This meant working with the flpSandbox files to test my development. A new feature request wanted me to filter a list with the user id.

The user id in the mocked FLP sandbox environment is set to “DEFAULT_USER” by default but that would not work for testing and I did not want some line of code that changes the user id.

What do I have to do?

Newer SAPUI5 projects will have a file called flpSandbox.html and a file called flpSandbox.js. You will habe to add a configuration for the “container” service like this in the flpSandbox.js file.

If the project contains a flpSandbox.html only, you can add the configuration there like this:

This is how it will look like:


This does also work in SAP WebIDE. You will need to create a flpSandbox.html like mentioned before and run it as a Web Application.

Thank you very much vor reading and I hope this might help a few people.

Nils Janßen

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Volker Buzek
      Volker Buzek

      wwwwwwelcome to the blogosphere, Nils!


      Author's profile photo Thomas Mundt
      Thomas Mundt

      Thank you Nils for this great article!

      Is there a way one could determine logged in user at runtime in comparison to the configuration being described?

      I think of something like the logon at the Fiori Launchpad being used normally.

      Author's profile photo Nils Janßen
      Nils Janßen

      Hi Thomas,

      are you looking on a way to get the current user information? You can do that with the UShell Services.



      Author's profile photo Poonam Dhomane
      Poonam Dhomane

      Hi Nils,

      I added configuration in flpSandbox.js as suggested in SAP BAS(Business Application Studio) as our development tool.

      Able to see the changed user id in console and profile. But while testing the backend functionality(OData) , user is not passed correctly which leads to OData failure error.



      Guide me for the same.





      Author's profile photo Krzysztof Śliwa
      Krzysztof Śliwa


      quite cool feature, good to know it. You have small bug 🙂 in the text


      " You will habe to add a configuration "