The best way should be to assign the value to a user-defined variable so that you can use it as usual from that point on. Create a variable, e.g. “username”.
The code should be:
Then you can use “username” in any way, e.g. in a Change contents action. Inline variable replacement probably won’t work on the page the code is run but should work on all pages that come later.