Lore
Security troll
A security troll was a specially-trained troll who guarded certain places and…

A bunch of surly security trolls had been hired to guard her. They paced the corridor in a menacing group, talking in grunts and comparing the size of their clubs.
A security troll was a specially-trained troll who guarded certain places and objects in wizarding society. Some wizards and witches made their living out of training security trolls.
20th century
During the 1920s, a company called Trolls de Securité existed that was based in the Rue de Montmorency in Place Cachée. Security trolls were employed at Gringotts Wizarding Bank, helping to inspect lifts and carts.
By the late 1990s, the British Ministry of Magic was taking interviews for the position of security troll trainer.
1993-1994
In 1993, Albus Dumbledore hired security trolls to guard the Fat Lady's portrait after Sirius Black attacked her in an attempt to get into Gryffindor Tower and Sir Cadogan was fired for letting him in while he was covering for the Fat Lady. These trolls were placed in the North Wing and were evidently a different type of troll than the mountain variety, since they seemed considerably more intelligent and less smelly. They spent all their time pacing the corridor in front of the Fat Lady's portrait, giving dirty looks to everyone who happened by and comparing the sizes of their clubs. They left at the end of the year, when Sirius led the Ministry into knowing that he fled out of the country.
1995-1996
In 1996, Dolores Umbridge apparently hired an armed security troll to guard Harry Potter's Firebolt. This was after Fred and George Weasley made their final departure from Hogwarts and had stolen their brooms back, Umbridge decided that it would be best to move Harry's broom to the Dungeons with the added security measure of security trolls. It was eventually dismissed when Umbridge left, and Harry got his Firebolt back.
21st century
Nicholas de Mimsy-Porpington hired a security troll for his 517th Deathday Party in 2009. In the same century, security trolls were unleashed as a Confoundable by the Calamity and had to be dealt with by the Statute of Secrecy Task Force.
Sources
Adapted from the original article, under CC BY-SA 3.0.






