Skip to main content

ProfileRuleContext

Defines the context in which the rule will be evaluated.

Examples

Code attributes enclosed with <> need to be replaced with a custom value before entering the script in the command line.

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

Properties

PropertyTypeDescription
EntityType optionalInt64When ResourceType is not used, identifier of the entity type from which the expressions are evaluated.
IsAppliedToRoot default value: trueBooleanThe dimensions are queried from the user's information.
ResourceType optionalInt64The resourceType of the assignedResourcetypes on which the rule is going to be applied on.
RootBinding optionalInt64Binding to apply on the user resource before executing the root expression(cf Profile Rule).
SubBinding optionalInt64Binding to apply on the user resource before executing the sub expression(cf Profile Rule).

Child Element: ProfileRule

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

Examples

Code attributes enclosed with <> need to be replaced with a custom value before entering the script in the command line.

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

Properties

PropertyTypeDescription
B0 optionalInt64Represents 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. See the Base32 Parameter Names topic for additional information.
IsDenied default value: falseBooleanProfile denied to the user when matched.
Profile requiredInt64Identifier of the profile rule.
RootExpression optionalStringC# expression to apply on the source entity type of the context resource type. See the Expressions topic for additional information.
SubExpression optionalStringC# expression to apply on the target entity type of the context resource type. See the Expressions topic for additional information.