Take offence at carrying ID if local (8)

I believe the answer is:
resident
'local' is the definition.
(I've seen this before)
'take offence at carrying id' is the wordplay.
'take offence at' becomes 'resent' (I've seen this before).
'carrying' means one lot of letters goes inside another.
'resent' enclosing 'id' is 'RESIDENT'.
'if' is the link.
(Other definitions for resident that I've seen before include "Inserted by permanent inhabitant" , "One living somewhere" , "settled" , "Inhabitant, occupant" , "Someone with a home" .)