@firstname.lastname@example.org is spot on. The “trick” is to do the success and error parts inside the flatMap where you have your key instead of chaining it afterwards. That way you have access to it and all good.
Note that we are thinking about adding the Id and other attributes into the Result objects for convenience, so in the future you’ll also be able to do what you tried at first. But then again, the other approach works exactly the same way, just one level nested deeper.
@helper_bro well I think we can enhance the docs, but there is a fine line between documenting the SDK and re-documenting reactor. Since technically what was described here has nothing to do with the SDK per se but is how you work with project reactor underneath?