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 :
Microsoft Dynamics CRM (Archived)

CRM 2015 - Odd behavior related to data encryption

(0) ShareShare
ReportReport
Posted on by

I noticed an odd scenario pop up in my CRM dev environment.

We have Dynamics CRM 2015 On Premises and we are in our development phase.  When I went into CRM Deployment Manager and created a new organization for the purpose of disaster recovery testing (call it org1), I received a warning during setup that stated that data encryption would be active after the install, and that it was recommended that I copy the encryption key and keep it in a safe place.  As seen below:

CRM-Deployment-Shot.JPG

 

Upon logging into org1 through the web interface, I went to Settings -> Data Management -> Data Encryption.  It showed that encryption was active and it gave me an encryption key which I copied into a notepad text file.  The encryption key appeared to be a very strange font and may have included Chinese language characters, which took me aback a little bit, but I was still able to copy it to clipboard and put it in notepad.

At this point, I am ready to start testing disaster recovery from backup.  First, I entered a single Account into this new organization and filled in three fields (Account Name, Phone Number, Fax Number).  This was to serve as my sample data.  I then signed out of CRM.  I then went into SQL Server 2014 Management Studio.  Org1's database is listed as org1_mscrm in SQL Server.  I made a backup of this database.  I then used SQL Server Management Studio to restore the backup of org1_mscrm to a new database, called org2_mscrm.

I returned to CRM Deployment manager and import org2.  This completes successfully.  At this point, I do the configurations needed in DNS and ADFS to access org2 and then I login successfully.

I then go to Settings -> Data Management -> Data Encryption, and I see this, much to my surprise:

CRM-Data-Encryption-Screen-Shot.JPG

Data Encryption Inactive

Something seems wrong with this.  I was under the impression that if I restored a database from a backup, that I would be required to enter the encryption key, without which I would be unable to access my data.  I tested this and I was able to see the Account I added earlier and both phone numbers that I entered.

I have two concerns.

1) My data may come in unencrypted in a disaster recovery situation, which is less secure than I'd like.

2) My understanding is that upon restore, I should be required to enter the encryption key in order to read my data.  It didn't work out that way under testing.  I fear some odd, obscure, uniquely Microsoft sort of situation where encryption actually is active even though it says it isn't, and then when the day comes that I restore my database from a backup and I don't have the encryption key for some reason, our data is gone.  FWIW, this is hypothetical.  I'm never going to allow the encryption key for our production environment to NOT be recorded somewhere in case it's needed, but it bothers me greatly that I don't understand what is going on here.

Can anyone explain what is happening here?

*This post is locked for comments

I have the same question (0)
  • Mitch Milam Profile Picture
    on at

    First and foremost, your data is not encrypted. The information that is encrypted is related to a few, extremely-specific fields, not the entire thing.

    I would advise reading the implementation guide about this specific subject.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hello,

    Thank you for your query.

    Firstly, I would like to know whether you are upgrading your CRM organization and moved it to a different/new SQL instance.

    The information of the data encryption key lies on the MSCRM_CONFIG database in the SQL server. If you have installed a new CRM deployment,  a new corresponding MSCRM_CONFIG database would have been generated. Upon restoring the Organization database, you would have retrieved your data, however, the details of the data encryption key did not pass on here and hence, it gave a warning to you at the system checks.

    You can refer the following articles over data encryption:

    technet.microsoft.com/.../dn531199.aspx

    community.dynamics.com/.../data-encryption-in-crm-2013

    msdynamicscrmblog.wordpress.com/.../data-encryption-in-dynamics-crm-2013

    If you never had a data encrypted previously ever, you can try entering a new Activation Key and hit on the button ACTIVATE. ( The encryption key should generally be in the following format: An upper case key, A lower case key, A special character and a Number Eg: --- Example@123)

    If you get through it, save that activation key and you would be good with it.

    And if it errors out, you can click on download log file and send me the error message here and I shall let you know what to be done next.

    I hope this helps.

    Please do inform me about update. Feel free to reply here and I'll be glad to assist you.

    Thanks & Regards,

    Sharon Mhatre

    Support Engineer

    Microsoft Dynamics CRM

  • Community Member Profile Picture
    on at

    Please help. I had same issue. Here's the downloaded log file.

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Please select an account that is a member of the PrivUserGroup security group and try again.Detail:

    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance&quot; xmlns="schemas.microsoft.com/.../Contracts&quot;>

     <ErrorCode>-2147187711</ErrorCode>

     <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic&quot; />

     <Message>Please select an account that is a member of the PrivUserGroup security group and try again.</Message>

     <Timestamp>2018-06-05T06:10:18.7558898Z</Timestamp>

     <InnerFault i:nil="true" />

     <TraceText i:nil="true" />

    </OrganizationServiceFault>

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans