Since they didn't have a permit to rally in the park at Fort Mason, they were advised by rangers that they couldn't have groups larger than 20 people. They also couldn't use amplified public address systems.
https://www.nbcbayarea.com/news/local/san-francisco/donald-trump-san-francisco-visit-rally/3559689/