code: def get_user_properties(user_or_username):
      
      user = get_user(user_or_username)
      if user is None:
          return {}
      if not callable(user.getUser):
          return {}
      out = {}
      plone_user = user.getUser()
      for sheet in plone_user.listPropertysheets():
          ps = plone_user.getPropertysheet(sheet)
          out.update(dict(ps.propertyItems()))
      return out
docs: Return User Properties
  
      :param user_or_username: Plone group identifier
      :returns: Plone MemberData