code: def get_user_properties(self):
          
  
          user = self.context.getUser()
  
          # No User linked, nothing to do
          if user is None:
              return {}
  
          out = {}
          plone_user = user.getUser()
          userid = plone_user.getId()
          for sheet in plone_user.listPropertysheets():
              ps = plone_user.getPropertysheet(sheet)
              out.update(dict(ps.propertyItems()))
  
          portal = api.get_portal()
          mtool = getToolByName(self.context, 'portal_membership')
  
          out["id"] = userid
          out["portrait"] = mtool.getPersonalPortrait(id=userid)
          out["edit_url"] = "{}/@@user-information?userid={}".format(
              portal.absolute_url(), userid)
  
          return out
docs: Return the properties of the User