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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to keep table data concealed

(0) ShareShare
ReportReport
Posted on by

Hi experts,

I have a  custom AX able where i will be storing confidential data which i do not even want Admin to see vi a direct SQL access when they move Axdb across environments or with their sys admin access in the application.

Only authorized sec roles should be able to see data in plain format via the application & no one else not even sys admin could see this.

Please suggest how can i achieve this.

Thanks

Mav

I have the same question (0)
  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Mav,

    Is that credit card data that you want to conceal?

    Best regards,

    Ludwig

  • Mav Profile Picture
    on at

    Not exactly but some finance confidential data which no one else from authorized security role should be able to see , not even sys admin via application or in sql.

    I remember possibly doing something similar in D365 where i was able to use Global::handleEncryptedTablePreInsert(this); method which are not available in Ax2012.

    Thanks

    Mav.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Mav,

    Please check this link. Is this something that you can implement?

  • Mav Profile Picture
    on at

    Was just wondering that even if we achieve that only particular sec role should be able to see it , then there is a risk of admin assigning that role in non prod & see this data. So not sure if encrypt/decrypt would work.

    May be something like hashing , not sure though. Is there something in Ax which Admin can never ever see via sql studo & via application ?

    Or an approach like below

    1>Ensure that no admin role can access the data in the Prod environment via application & SQL.

    2>When moving Axdb from prod to non prod , have a script to run delete from so as to delete all the data in the concerned table.

    Please suggest a full proof solution 

    Thanks

    Mav

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Mav,

    What if you have a validation of some sort when this role is assigned to the user? This could be done at the table level where not everyone is allowed to add this particular role to the users. Maybe you could hide this role from all the other admin users apart from the authorized user(s) as well.

    This might need some hardcoding and might not be full proof if users can go and change the code in the backend.

    You will need to implement #2 anyway as this data should only be available in Prod.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Mav.

    Before putting much effort into this, I wonder whether you need to have those data in AX?

    If you don't need them in AX and can keep and track them outside then there is no need to keep the data concealed.

    Would that be an option?

    Best regards,

    Ludwig

  • Mav Profile Picture
    on at

    Hi Dr Ludwig,

    Data has to be in Ax :-(

    Thanks

    Mav

  • Mav Profile Picture
    on at

    Hi Experts,

    Anyone any idea for achieving this data concealment from admin via sql dB and application.

    If hashing /hashkey can achieve this then  Any example within ax where it stores hashkey

  • Mohsin Khalid Profile Picture
    501 on at

    Hi Mav;

    I would go for a public private key approach, meaning data is stored in sql encrypted and the private key is not stored in the system. Each user (assuming upper management) have a private key to decrypt data.

    To achieve it think of it this way, the user executes a script and the script asks for the private key, if correct key is inserted the data is decrypted for their viewership.

  • Mav Profile Picture
    on at

    Please share example for reference.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans