web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Mask all but the last four of social security number?

(2) ShareShare
ReportReport
Posted on by 57

I'm looking for a way to mask all but four of the social security number field in dynamics365 crm. 

I have the same question (0)
  • Moximox Profile Picture
    2 on at
    RE: Mask all but the last four of social security number?

    Add a security field profile for this column and the field is not able to be read. 

  • emilu Profile Picture
    57 on at
    RE: Mask all but the last four of social security number?

     Can you be more specific and include instructions?

  • Suggested answer
    Gagandeep Singh Profile Picture
    587 on at
    RE: Mask all but the last four of social security number?

    Hi Emilu,

    Not directly possible. You can refer to this article ledgeviewpartners.com/.../ on how to setup the field security profile in CRM but what this does is masks all the characters on the field. What you could additionally do is to write a script to copy the last 4 digits of SSN into another field and keep that visible and mask the actual SSN field.

    That's the work around that I can suggest. Hope it helps!

  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at
    RE: Mask all but the last four of social security number?

    Hello,

    The best option will be to use field security because you can control whom it will be visible. Also don't use JavaScript on the form for masking because user can still able to see the data from Advanced find.

    Thank you,

    Amit Katariya

  • Suggested answer
    Moximox Profile Picture
    2 on at
    RE: Mask all but the last four of social security number?

    Hi

    Sorry if I was vague. Here is a link how to use my recommendation. 

    https://docs.microsoft.com/en-us/power-platform/admin/field-level-security

    if you disallow read for a field for all users except those who has the security profile means that they won’t see the field data. It won’t be masked by asterisk but it will be masked by emptiness. 

  • Laurel Jimenez Profile Picture
    5 on at
    RE: Mask all but the last four of social security number?

    Is this the solution for D365 F&O as well.  The link provided in another response appeared to be for D365 CE.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 337

#2
Sohaib Cheema Profile Picture

Sohaib Cheema 95 User Group Leader

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 82

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans