<MiscellaneousPrivilegeRule> (RibbonDiffXml)
Applies To: Dynamics CRM 2013
Specifies a rule that can detect whether the user possesses a specific Microsoft Dynamics CRM privilege.
Syntax
<MiscellaneousPrivilegeRule
Default=["0" | "1" | "true" | "false"]
InvertResult=["0" | "1" | "true" | "false"]
PrivilegeDepth=["None" | "Basic" | "Local" | "Deep" | "Global"]
PrivilegeName="String"
/>
Attributes and Elements
The following table lists the attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
Type |
Usage |
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Default |
Sets the default return value for the rule if the actual value cannot be determined. |
Boolean |
Optional |
||||||||||
InvertResult |
Negates the return value of the rule. |
Boolean |
Optional |
||||||||||
PrivilegeDepth |
The Privilege Depth to check. Valid values:
|
Enumeration |
Optional |
||||||||||
PrivilegeName |
The name of the privilege to evaluate. See Remarks. |
String |
Required |
Child Elements
This element has no child elements.
Parent Elements
Element |
Description |
---|---|
Specifies either the definition of a rule used to display a ribbon element or a reference to a DisplayRule from a command definition. |
|
Specifies a set of rules that must be evaluated together. |
Remarks
The string used to specify the privilege not associated with an entity. The PrivilegeName must correspond to a valid privilege name. See Privileges not associated with an entity. The privileges listed in that table include the prefix ‘prv’. Remove that prefix and use the remaining privilege name. For example, for the privilege name prvCreateEntity, just use CreateEntity.
For privileges associated with an entity use <EntityPrivilegeRule> (RibbonDiffXml).
Element Information
XPath |
|
Schema Name |
MiscellaneousPrivilegeRuleType |
Validation File |
RibbonTypes.xsd |
Can be Empty |
Yes |