It would be quite useful if you provide more details on what exactly you are willing to achieve. Is the name displayed like in the screenshot attached or you need to extract specific string from the URL?
If it is the way like in the screenshot this is the easier option. You need to use the same username in the login and in the verification at the end of the test. If you are using multiple users it is achievable with data binding