Skip to main content

ProfileRuleContext

Defines the context in which the rule will be evaluated.

Examples

<ProfileRuleContext ResourceType="AD_Entry_User" IsAppliedToRoot="false">
<ProfileRule Profile="Administrator" SubExpression="c#:user:return user.Organization.Code_Organisation == &quot;SRV46&quot;;" Dimension0Binding="Organization:Code"/>
</ProfileRuleContext>

Properties

PropertyDetails
EntityType optionalType: Int64 Description: When ResourceType is not used, identifier of the entity type from which the expressions are evaluated.
IsAppliedToRoot default value: trueType: Boolean Description: Are the dimensions queried from user informations?
ResourceType optionalType: Int64 Description: The resourceType of the assignedResourcetypes on which the rule is going to be applied on.
RootBinding optionalType: Int64 Description: Binding to apply on the user resource before excuting the root expression(cf Profile Rule).
SubBinding optionalType: Int64 Description: Binding to apply on the user resource before excuting the sub expression(cf Profile Rule).

Child Element: ProfileRule

Defines the rule to assign a profile to user when matched.

Examples

<ProfileRuleContext ResourceType="AD_Entry_NominativeUser" SubBinding="Directory_User:ManagedOrganizations" IsAppliedToRoot="false">
<ProfileRule Profile="Manager" Dimension0Binding="Directory_Organization:Id" />
</ProfileRuleContext>

Properties

PropertyDetails
B0 optionalType: Int64 Description: Represents the first dimension binding definition. The 127 other dimension bindings can be referred to by 127 more parameters from B1 to B3V following the base32hex convention.
IsDenied default value: falseType: Boolean Description: Profile denied to the user when matched.
Profile requiredType: Int64 Description: Identifier of the profile rule.
RootExpression optionalType: String Description: C# expression to apply on the source entity type of the context resource type. See more details on C# expressions.
SubExpression optionalType: String Description: C# expression to apply on the target entity type of the context resource type. See more details on C# expressions.