MSSQL 2014: Database Custom User Policy Discovery

Microsoft.SQLServer.2014.DatabaseUserPolicyDiscoveryRule (Discovery)

This discovery rule discovers Custom User Policies for SQL Server 2014 Database. Note: This discovery is disabled by default. Please use overrides to enable it when necessary.

Knowledge Base article:

Summary

This is main discovery for Custom User Policies for Microsoft SQL Server 2014 Databases.

Overrideable Parameters

Name

Description

Default Value

Enabled

Enables or disables the workflow.

No

Timeout (seconds)

Specifies the time the workflow is allowed to run before being closed and marked as failed.

300

Element properties:

TargetMicrosoft.SQLServer.2014.DBEngine
EnabledFalse
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2014.DBUserPolicyDiscovery Default

Source Code:

<Discovery ID="Microsoft.SQLServer.2014.DatabaseUserPolicyDiscoveryRule" Enabled="false" Target="Microsoft.SQLServer.2014.DBEngine">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SQLServer.2014.Policy"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2014.DBUserPolicyDiscovery">
<ComputerID>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerID>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<SQLConnectionString>$Target/Property[Type="Microsoft.SQLServer.2014.DBEngine"]/ConnectionString$</SQLConnectionString>
<SQLInstanceName>$Target/Property[Type="Microsoft.SQLServer.2014.ServerRole"]/InstanceName$</SQLInstanceName>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>