Getting a CNSS registration number

How to obtain a CNSS (Moroccan social-security) registration number, whether you are an employee, an employer or an independent worker.

Read: 8 min · Category: Social protection · Updated: 2026-10-08 · Reviewed: 2026-10-08

Morocco’s social insurance number is the CNSS registration number (numéro d’immatriculation), issued by the Caisse nationale de sécurité sociale. It is a lifetime identifier, separate from your national ID card (CIN) number, and it gates every benefit the CNSS pays: sickness and maternity daily allowances, family allowances, AMO health coverage and, above all, your pension. As an employee, your employer declares you to the CNSS through the DAMANCOM portal, which issues the number, and article 24 of the Labour Code requires the employer to give you that number in writing when you’re hired. As an independent worker (TNS), you now register yourself since the 2021-2022 universalisation reform. As an employer starting a business, you apply for an affiliation number first and then declare each hire. This guide covers all three cases, how to find a lost number with your CIN, and why every declared day counts.

Adviser explaining paperwork to a client at an office desk
CNSS registration is the gate to every social right. Verify it in your first week, every month without a CNSS number is a month of lost contributions on your future pension. Photo: Mikhail Nilov via Pexels. Pexels licence.

Who needs a number

Affiliation to the social security scheme is compulsory for the private sector. The insurance regulator ACAPS lists the salaried categories it covers:

  • Employees in commerce, industry, the liberal professions, associations, trade unions, cooperatives and craft businesses;
  • Sea fishermen;
  • Temporary or occasional workers in the private sector;
  • Employers and workers on farms and in forestry.

Two more groups deal with the CNSS directly:

  • Independent workers (TNS), traders, artisans, liberal professions, farmers, who have registered personally since the 2021-2022 universalisation reform;
  • Employers, who hold a separate affiliation with its own affiliation number.

Public-sector staff are not on this list: their health insurance runs through CNOPS. That changes in 2027, when law 54-23 moves public-sector AMO to the CNSS (see the CNOPS glossary entry).

Your CNSS number and your CIN are two different numbers

People often search for their “CNSS number by CIN” because the CIN is what they carry. The two do different jobs. The CIN proves who you are; the CNSS registration number is the account your declared days and wages are credited to. You use the first to recover the second: by logging in to macnss.ma with your CIN, or by showing your CIN at a CNSS office.

The Labour Code gives you a third route, and it is the fastest. Article 24 lists “le numéro d’immatriculation à la Caisse nationale de sécurité sociale” among the details an employer must communicate to employees in writing at hiring. If you were hired and never received it, ask HR for it in writing, citing article 24.

Case 1, You are hired as an employee

The employer is responsible. They declare you to the CNSS through the online DAMANCOM employer portal, and article 24 of the Labour Code obliges them to give you your registration number in writing when you’re hired.

Check a week later:

  1. Log in to macnss.ma with your national ID (CIN).
  2. Under “Mon immatriculation”, your number should appear.
  3. If it hasn’t after 15 days, ask your employer to confirm the DAMANCOM filing; chase if needed.

Keep that number, it stays with you across employers.

If you work through a temp agency, the number has a second home: article 501 of the Labour Code requires the agency’s written contract with you to state your CNSS registration number, next to the agency’s own membership number.

Business professionals reviewing an application form during a meeting
If your number hasn't appeared on macnss.ma after 15 days, ask your employer to confirm the DAMANCOM filing. An unfiled employee accrues zero pension rights, silently. Photo: RDNE Stock project via Pexels. Pexels licence.

Case 2, You are a non-salaried worker (TNS)

Since the social-protection universalisation, TNS register directly.

  1. Go to cnss.ma, non-salaried-worker section.
  2. Identify your category (liberal profession, trader, artisan, farmer…), contribution rate and flat basis depend on it.
  3. Prepare the file, CIN, proof of activity (business licence, trade register, professional card), bank details.
  4. File the request online or at a CNSS office.
  5. Pay the contribution on your category’s schedule.

After registration, your number and AMO card are issued; benefits are available after the regulatory waiting period.

Case 3, You are an employer (new business)

  1. Employer affiliation, submit an affiliation file (articles, trade register, tax ID, bank details) at your local CNSS office.
  2. Once you have the affiliation number, open a damancom.ma account.
  3. Declare each employee on hire; employees without a CNSS number are auto-registered on first declaration.
  4. Declare salaries and pay contributions every month.

Then hand each new hire the written information article 24 requires, the CNSS number included. The CDI and CDD guide lists the rest of that article.

Recovering a lost number

  • Check an old payslip, the number must appear.
  • Log in to macnss.ma with your CIN.
  • Visit a CNSS office with your CIN.
  • Ask your current or former employer for the written information article 24 required them to give you.
Professional individual signing legal documents at an office desk
Keep your CNSS number written somewhere safe. It is yours for life, transfers between employers automatically, and is the foundation of every social right you'll claim. Photo: Mikhail Nilov via Pexels. Pexels licence.

Why every declared day counts

The number matters because of what is credited to it. ACAPS sets out the CNSS pension rules:

  • Old-age pension at 60, provided you can show at least 3,240 days of insurance. Miners who worked underground for at least five years can retire at 55.
  • Amount: 50% of your average monthly salary, defined as the total of contributory salary over the 96 declared months before retirement divided by 96. The pension cannot be lower than MAD 1,000 a month or higher than 70% of that base.
  • Early retirement from 55 is possible with 3,240 days, at your request and with your employer’s authorisation; the employer pays a one-off premium to fund the pension until 60.
  • Survivors: a spouse, or all spouses together, and full orphans receive 50% of the pension the insured person had or would have had.

So a month you worked without being declared does not just cost contributions. It is missing from the 3,240-day count and, near retirement, from the 96-month average. The CNSS retirement guide runs the numbers.

What the contributions pay for

The CNSS runs three branches, and the rates are fixed by branch, as ACAPS sets out:

BranchCoversRateBaseWho pays
Family allowancesAllowances for dependent children, for workers and pensioners6.40%Actual salaryEmployer only
Short-term benefitsSickness and maternity daily allowances, death grant, job-loss allowance1.57%Salary capped at MAD 6,000 a monthTwo thirds employer, one third employee
Long-term benefitsOld-age, disability and survivors’ pensions11.89%Salary capped at MAD 6,000 a monthTwo thirds employer, one third employee

AMO health insurance and the vocational training tax are collected on top; the CNSS contribution rates guide has the full table with both shares.

How many people the CNSS covers

ACAPS’s 2024 activity report gives the scale. The CNSS pension scheme counted 4,045,862 active contributors and 835,400 pensioners in 2024. On the health side, AMO for private-sector employees counted 3,852,987 contributors and 9,546,743 beneficiaries, and AMO for independent workers 1,633,078 contributors and 3,510,739 beneficiaries.

Looking for a CNSS-declared role?

Every formal Moroccan employer must declare you to CNSS. To filter for employers that run clean payroll, browse Morocco openings on Bayt.com, multinationals and larger SMEs are the safest bets. Confirm CNSS declaration in your contract before signing, not after the first month.

Further reading

Sources

Rates and procedures change, check the latest version on the cited official source.

← All guides