A man is in custody after allegedly entering a restricted area in a Henrico government building and attempting to lock employees within a room there.