No idea, we're not Seblods developers so can't help you with what their user object contains and how to use it. The user must exist within CB for the API to properly retrieve anything. You also seam to have a "getField" function defined in the middle of your code that does nothing; no idea why that is there, but probably shouldn't exist. If you're new to PHP I suggest contacting a contract developer or a consultant to help you; we do not provide custom code here, sorry.