<MiscellaneousPrivilegeRule> (RibbonDiffXml)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Specifies a rule that can detect whether the user possesses a specific Microsoft Dynamics 365 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 Security role UI to privilege mapping. 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 |
See Also
Ribbon XML reference
Customize commands and the ribbon
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright