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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Does the 'CLR Assembly Permission Set' of SQL Server Hardening affect Dynamics CRM functionality?

(0) ShareShare
ReportReport
Posted on by 14
Hi frends,
 
Does the 'chapter 6.2 CLR Assembly Permission Set' of 'CIS_Microsoft_SQL_Server_2016_Benchmark_v1.3.0.pdf' SQL Server Hardening affect Dynamics CRM functionality? 
How to deal with the 'MSCRMSqlClr' assembly is 'UNSAFE_ACCESS' in the sql server?
 
Has anyone ever done this?
 
It is my pleasure if you give any suggestion, thanks in advance guys.
 
 
 
Cause
the SQL Server hardening is necessary, so when i follow the pdf to run the sql srcipt it return /MSCRMSqlClr    UNSAFE_ACCESS/,  
RunReturned
USE [CRM_Database_of_org_01];
GO
SELECT 
    name,
    permission_set_desc
FROM 
    sys.assemblies
WHERE 
    is_user_defined = 1;
MSCRMSqlClr    UNSAFE_ACCESS
 
i am afread that i have to follow the chapter 6.2 of the 'CIS_Microsoft_SQL_Server_2016_Benchmark_v1.3.0.pdf' to run another sql script to alter the 'permission_set' to 'SAFE' of the 'MSCRMSqlClr' assembly.
 
below is the screenshot of the chapter 6.2 of the 'CIS_Microsoft_SQL_Server_2016_Benchmark_v1.3.0.pdf':
/a
I have the same question (0)
  • Edward TsDS Profile Picture
    14 on at
    I follow the pdf to run the sql script, then i do a simple test in the CRM, no issue for now, so i decide to keep it.
  • Suggested answer
    Pedro Cadavez de Freitas Profile Picture
    on at
    Not an easy answer i guess, since there is no much public documentation about this assembly from CRM.
     
    The only context is this documentation:
     
    If we try to find v9.0 / v9.1 documentation, the CLR section doesnt exist anymore, meaning v8.2 does uses this assembly, while v9.0/9.1 doesn't (confirmed).
    So if you are using v9, i would say you are probably fine.

    Without much confidence, but just my 2 cents.
     
    Pedro Freitas
    Dynamics 365 Support Escalation Engineer

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans