Application for local ID card

I have a Norwegian social security number or D-number (11 characters)
Or
I do not have a Norwegian social security number or D-number