code: def user_search_results(self):
          
          results = super(SharingView, self).user_search_results()
          ws = IWorkspace(self.context)
          roles_mapping = ws.available_groups
          roles = roles_mapping.get(self.context.participant_policy.title())
  
          for result in results:
              if result["id"] in ws.members:
                  groups = ws.get(result["id"]).groups
                  for role in roles:
                      result["roles"][role] = "acquired"
                  if "Admins" in groups:
                      title = "administrator"
                      result["roles"]["TeamManager"] = "acquired"
                  else:
                      title = "member"
                  result["title"] = "%s [%s]" % (result["title"], title)
  
          return results
docs: Add [member] to a user title if user is a member
          of current workspace