A type of posttranslational protein modification where polysaccharide chains called glycans are attached to proteins. N-linked glycosylation is the attachment of glycans to the nitrogen atom of an amino acid.