def getUserName(obj): obj = IMembraneUserObject(obj, None) if obj is None: return None return obj.getUserName()