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

Announcements

No record found.

News and Announcements icon
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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 156

#2
ManoVerse Profile Picture

ManoVerse 153 Super User 2026 Season 1

#3
Zhilan Profile Picture

Zhilan 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans