分享方式:


<MiscellaneousPrivilegeRule> (RibbonDiffXml)

適用於: CRM 2015 on-prem, CRM Online

指定可偵測使用者是否擁有特定 Microsoft Dynamics CRM 權限的規則。

語法

<MiscellaneousPrivilegeRule
 Default=["0" | "1" | "true" | "false"]
 InvertResult=["0" | "1" | "true" | "false"]
 PrivilegeDepth=["None" | "Basic" | "Local"  | "Deep"  | "Global"]
 PrivilegeName="String" 
/>

屬性和元素

The following table lists the attributes, child elements, and parent elements.

屬性

Attribute Description Type Usage

Default

設定當無法判斷實際值時,規則的預設傳回值。

Boolean

Optional

InvertResult

變換規則傳回值的正負號。

Boolean

Optional

PrivilegeDepth

The Privilege Depth to check.

Valid values:

 

Value Description

Basic

此存取等級向使用者公開他所擁有的實體執行個體、共用的物件,以及與使用者所屬團隊共用的物件。在應用程式中此存取等級稱為「使用者」。

Local

此存取等級向使用者公開使用者業務單位中的實體執行個體。在應用程式中此存取等級稱為「業務單位」。

Deep

此存取等級向使用者公開使用者業務單位中的實體執行個體,以及附屬於使用者業務單位的所有業務單位。在應用程式中此存取等級稱為「上/下層業務單位」。

Global

此存取等級向使用者公開組織內的所有實體執行個體,而不論執行個體或使用者所屬的業務單位階層層級為何。在應用程式中此存取等級稱為「組織」。

Enumeration

Optional

PrivilegeName

The name of the privilege to evaluate. See Remarks.

String

Required

子元素

此元素沒有子元素。

上層元素

Element Description

<DisplayRule> (RibbonDiffXml)

指定用於顯示功能區元素或命令定義中 DisplayRule 參照的規則定義。

<Or> (RibbonDiffXml)

指定一組必須同時評估的規則。

備註

The string used to specify the privilege not associated with an entity. The PrivilegeName must correspond to a valid privilege name. See 權限未與實體相關聯. 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).

元素資訊

XPath

//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/MiscellaneousPrivilegeRule |
//RibbonDiffXml/RuleDefinitions/DisplayRules/DisplayRule/OrRule/Or/MiscellaneousPrivilegeRule

Schema Name

MiscellaneousPrivilegeRuleType

Validation File

RibbonTypes.xsd

Can be Empty

Yes

請參閱

其他資源

Ribbon XML reference
自訂命令和功能區

Microsoft Dynamics CRM 2015 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.