As we all know because of both of the statues and the trailer. Glamrock Freddy isn't going to be a foe, but a friend. But why is that? Throughout the last 8 games, almost every animatronic was hostile towards you, then why isn't it the same for him? I have a lot of thoughts for that, here are what I believe are the most plausible ones.
1. Facial scanners
Before you go attacking me in the comments hear me out. Yes, I know they tried this on the Toys and it didn't work out. But this takes place in more modern times, and modern times come with more advanced technology. So maybe Fazbear Entertainment decided to try it again. And this time, it was successful!
2. Powered by something
As Fazbear Frights confirmed, artificial intelligence can be powered by agony, which makes it plausible for not all hostile animatronics to be possessed. But yet again, Scott never said that ONLY agony can power an animatronic. Remember, this is FNaF we're talking about, just because we went in depth of one thing, doesn't mean another thing is not. And anything can get weird. There's even a time-travelling ball pit and a man giving c-section birth to a mini Springtrap (no joke).
3. Possessed
As we know, Vanny is trying to kill Gregory in this new game, but once again, Scott never said that Gregory is her first victim, there could have been many before him. Yes, I know possessed animatronics have a history of being hostile towards you, but you're playing as a child now, and I doubt possessed animatronics would kill a kid on purpose. I kind of have a headcanon that possessed animatronics try to kill security guards because they look like their killer (AKA William Afton). But who possesses Glamrock Freddy? Well, how am I supposed to know? ¯\_(ツ)_/¯