Brian is a former boom operator at the agency that films the office.
Brian was a part of the crew since before the first episode. Pam reveals in Season 9 Episode 18 ("Promos") that he has observed them for 10 years. In a Season 5 episode, the boom briefly appear over Jim's head during a scene with her and Jim when Jim showed her their new house. This may have been Brian.
After a fight between Jim and Pam, Brian comforts Pam and tells her its a tough situation and that things will get better.
Pam thanks Brian for helping her and wishes that they could continue to talk however Brian informs her the agency is cracking down on the camera crew talking to the office staff. When Meredith asks him when he will "boom" her, Brian seems happier to tell her the same thing before walking away. After Clark is moved to Jim's desk and he, Dwight, and Pam joke around, Brian is shown to be happy to see that Pam is happy. It is subtly hinted that Brian has developed a crush on Pam, similar on how Jim fell in love with Pam, working close to her for several years (Junior Salesman).
When Pam is talking about how alone she feels after someone vandalizes her mural, Brian lightly taps her on the head with his boom causing Pam to smile and remember he is still there for her. After Pam and Dwight retaliate against the warehouse worker responsible for vandalizing her mural, the warehouse worker attempts to attack her however is knocked aside by Brian. He fights the warehouse worker off and saves Pam. Both are fired and Pam apologizes to Brian. Brian leaves but before doing so, tells Pam that if she ever needs anything, he is there for her.
After Brian is fired, Pam and Jim plan to meet for lunch with Brian and his wife, Alyssa, on Valentine's Day. At lunch it is revealed that Brian has separated from Alyssa, and Jim discovers that Brian consoled Pam when she was distraught over arguing with her husband.
When the documentary promos reveal all the secrets of the office, Pam's workmates prompt her to seek out Brian in order to find out how extensive the damage. When she visits him at his apartment, (which the camera crew is filming their talk) Pam asks Brian's opinion of her marriage; She also asks about the footage, to which he responds that the crew filmed "pretty much everything." Incensed at this invasion of privacy, Pam storms out. Afterward, there is no mention of Brian again, except perhaps as an audience member during the Finale.