---
title: "Compute a **navigation** Property"
description: "Learn how to compute and provision navigation property values in Identity Manager using navigation rules and query rules."
sidebar_position: 30
---

# Compute a **navigation** Property

How to define **navigation** rules and/**or** query rules to compute and provision the values of **navigation** properties for target resources based on source resources. See the [Resource Type](../../../integrations/toolkit/xml-configuration/provisioning/resourcetype.md) topic for additional information.

## Overview

Sources are usually identities, and targets are usually accounts from the managed systems.

Here, you compute the values of **navigation** properties for the target resources used in entitlement management, based on source resources. See the[Define **navigation** Properties](../connect-system/entity-type-creation/navigation-property-definition.md) topic for additional information. You then provision these properties, i.e. write them to the managed system. See the [Provision](../../../admin/provisioning/index.md) topic for additional information.

The right tools for the job are **navigation** and query rules.

A **navigation** property's value can be computed by a **navigation** rule **or** a **query rule**, assigning a given resource from the entity type pointed by the **navigation** property (which can be the target entity type itself). Let's call this entity type the "other" one.

- A **navigation** rule assigns a fixed resource, which is chosen from among the "other" entity type's
resources during the rule's creation. The assigned resource is the same for all impacted accounts. Use a **navigation** rule when a given resource must be assigned, regardless of users' attributes.
- A **query rule** assigns a resource from the "other" entity type too. However, the resource is chosen
according to a query via a C# expression with conditions, based on the attributes of the source objects (usually users). Hence, contrary to a **navigation** rule, a **query rule** can assign a different resource for each impacted account, based on the attributes of the account's owner. Use a **query rule** when there is the need to use variables from among users' attributes to select the resource to assign.

![Schema - Scalar Rule](/images/identitymanager/provrules_schemanavigation.webp)

> A **navigation** rule could add the AD group `SG_APP_SQL` to the `memberOf` **navigation** property to all
> AD nominative accounts provided that the user has the single role `SQL Server Administration`.

> A **query rule** could compute the value of the `department` **navigation** property for ServiceNow
> nominative accounts (entity type `ServiceNow_User`), with a query from among resources from the
> `ServiceNow_Department` entity type, where the name of the resource would match the display name
> of the organization specified for the user (owner of the ServiceNow account).
>
> We need here to query the `ServiceNow_Department` entity type in order to find the right
> department to update the value of `department`, which is specific to each ServiceNow account.
>
> Thus, each user owning a ServiceNow account will see the value of `department` in their account
> updated with the resource from `ServiceNow_Department` which corresponds to the department
> specified for this user.

> Another **query rule** could compute the `parentdn` attribute for AD nominative accounts, with a query
> from among AD entries, where the `dn` attribute of the resource would match a complex expression
> based on the user's (owner of the AD account) presence state, employee type, location, etc.
>
> We need here to query the `AD - Entry` entity type in order to find the right dn to update the
> value of `parentdn`, which is specific to each AD nominative account.
>
> Thus, each AD nominative account will have the value of its `parentdn` set according to its
> owner's attributes (presence state, employee type, location, etc.).

The application of a **navigation** rule can depend on the assignment of a single role, and/**or** user dimensions. See the[Create Roles in the Role Catalog](../single-roles-catalog-creation/index.md) topic for additional information on the assignment of a single role and [Conforming Assignments](../../role-assignment/conformingassignmentcomputation.md) topic for additional information on dimensions.

A **query rule** doesn't use criteria as it is designed to compute a given **navigation** property for all existing resources in a given resource type. However, in case of several query rules on a same property, the application of a **query rule** depends on its confidence rate and the corresponding priority it receives compared to other query rules. See the [Classify Resources](../categorization/classification.md) topic for additional information.

While both **navigation** and query rules compute **navigation** properties, the value of one **navigation** property should be computed by **either** **navigation** **or** query rules, not both.

In Identity Manager, a **navigation** property has two "sides", one for each linked element.

For example in the AD, the group membership of a user is represented by the properties `member` for groups (containing a list of users) and `memberOf` for users (containing a list of groups). However, some managed systems only have one of these two sides.

The AD only uses `member` from among groups' properties. Users do not have a `memberOf` property. As Identity Manager uses and links both sides, it is able to "translate" the information, so that the corresponding **navigation** property, which actually exists in the managed system, is modified by the **navigation**/**query rule**.

Identity Manager assigns an entitlement to a user by assigning a group-membership to an account. Thus we can create a **navigation** rule which adds a group to the `memberOf` property of given accounts. Identity Manager will update the `member` property of groups accordingly (in Identity Manager), and then provision the `member` property of said groups in the AD, adding the impacted accounts.

A **navigation** rule will **trigger the creation** of a target resource for all impacted source resources (so all users), which are not yet correlated with a resource of this resource type.

:::note
 A **query rule** **does not create** resources, and only computes the **navigation** properties of existing resources. 
:::
## Guidelines

Follow these guidelines when configuring **navigation** properties.

**Expression code must not contain too much data**

Once configured, a rule is a complicated object to modify. Therefore, you must keep business data in the resource and out of the expression. It is easier to change data than to change a rule.

> For example, consider an organization that manages email addresses according to the site with
> `.fr` for France and `.be` for Belgium.
>
> A working option could be to write an expression with a condition `if` on the site to assign the
> domain name. However, if the organization expands and needs to consider an additional country,
> then the rule requires change in the expression code.
>
> A better solution is to change the identity data model by adding a field `Domain Name` to describe
> the object `Site`, and to be used in the rule expression. In this case, if there is an additional
> country, then a new field is added in the data model for `Site` and `Domain Name`. Thus, the rule
> expression remains simple by using the new objects, for example
> `Email = FirstName + "." + LastName + "@" + Company + "." + DomainName`.

**Priority between **navigation**/query rules**

When creating **navigation** and query priorities, follow these rules:

- Several rules computing the same property with different criteria should not coexist;
- The only reason to have several rules to compute a single property is when changing the property
value over time, via time offsets. See the [Resource Type](../../../integrations/toolkit/xml-configuration/provisioning/resourcetype.md) topic for additional information.

### Navigation rules with ResourceFromDimension

Instead of specifying an explicit `Resource`, you can use the `ResourceFromDimension` property to reference a dimension. The system behaves as if a separate rule exists for each resource in that dimension, with automatic parameterization on the single role. This approach reduces configuration entries when the same rule logic applies to multiple resources.

```xml
<NavigationRule Property="Organization" ResourceFromDimension="Organization0" SingleRole="ManagerOrganization" />
```

This is equivalent to creating individual rules for each resource in the dimension:

```xml
<NavigationRule Property="Organization" Resource="Dept_IT" SingleRole="ManagerOrganization" D0="Dept_IT" />
<NavigationRule Property="Organization" Resource="Dept_HR" SingleRole="ManagerOrganization" D0="Dept_HR" />
<!-- one rule per resource in Organization0 dimension -->
```

**Use when:** You need multiple rules that differ only in the assigned resource, and all resources belong to a dimension.

**Configuration requirements:**

- The `SingleRole` property is required
- Do not use both `Resource` and `ResourceFromDimension` in the same rule
- The dimension's entity type must match the target entity type of the navigation property
- Do not specify dimension criteria (D0, D1, etc.) - they are set automatically for each resource in the dimension

For complete XML configuration reference, see [ResourceType - NavigationRule](../../../integrations/toolkit/xml-configuration/provisioning/resourcetype.md#child-element-navigationrule).

## Participants and Artifacts

For a given managed system, integrators may need the help of the **application owner** who knows the application users, entitlements, and data model. See the [Categorize Resources](../categorization/index.md) topic for additional information.

 | Input | Output | 
 | --- | --- | 
 | Categorization (required) | **navigation** rules Query rules | 

## Create a **navigation** Rule

Fill an entity type with a **navigation** rule by proceeding as follows:

**Step 1 –** Click on **Access Rules** on the home page in the **Configuration** section.

![Home - Access Rules](/images/identitymanager/home_rules_v602.webp)

**Step 2 –** In the dropdown menu at the top left, choose the source entity type for the future **navigation** rule.

![Entity Type Choice](/images/identitymanager/provrules_entitytype_v602.webp)

**Step 3 –** Click on the **Navigations** tab and on the addition button at the top right corner.

![Addition Icon](/images/identitymanager/iconadd_v602.webp)

**Step 4 –** Fill in the fields.

![Create a **navigation** Rule](/images/identitymanager/singlerolescatalog_createnavrule_v602.webp)

- `Join`: **navigation** property from the target entity type, whose value is to be impacted.
- `Resource`: resource from the entity type pointed by the `Join`, which is to be added to the
`Join` property.
- `**navigation** denied`: option that forbids the resource assignment.
- `Offset of effective date`: time period that defines the actual effective date for property
computation according to the value's start and/**or** end date.

    > For example, account activation and deactivation can be managed according to the start and/**or**
    > end dates.

- **Criteria**: conditions that, if met, trigger the rule application.

> Our example would look like:
>
> ![Scalar Rule Example](/images/identitymanager/provrules_examplenav_v602.webp)

**Step 5 –** Click on **Create** and see a line added on the rules page.

The **navigation** rule is now configured and can be found in the Access Rules tab.

## Create a **query rule**

Fill an entity type with a **query rule** by proceeding as follows:

**Step 1 –** Click on **Access Rules** on the home page in the **Configuration** section.

![Home - Access Rules](/images/identitymanager/home_rules_v602.webp)

**Step 2 –** In the dropdown menu at the top left, choose the source entity type for the future **query rule**.

![Entity Type Choice](/images/identitymanager/provrules_entitytype_v602.webp)

**Step 3 –** Click on the **Queries** tab and on the addition button at the top right corner.

![Addition Icon](/images/identitymanager/iconadd_v602.webp)

Fill in the fields.

![Create **query rule**](/images/identitymanager/provrules_queryrule_v522.webp)

Once the `Resource Type` is provided, more fields appear.

![**query rule** Fields](/images/identitymanager/provrules_queryrulefields_v602.webp)

- **Target Object** > `Property to fill`: **navigation** property from the target entity type, whose
value is to be impacted.
- **Target Object**: property (**or** expression of properties) from the entity type pointed by the
`Property to fill`, which will be the value of the `Property to fill` if it matches the source object. Can be defined by a property path and/**or** an expression. See the [Expressions](../../../integrations/toolkit/expressions/index.md) topic for additional information.
- **Source Object**: property (**or** expression of properties) from the source entity type. Can be
defined by a property path and/**or** an expression. See the [Expressions](../../../integrations/toolkit/expressions/index.md) topic for additional information.
- `Offset of effective date`: time period that defines the actual effective date according to the
value's start and/**or** end date. An offset of effective date can be useful for some attributes. For example, account activation and deactivation can be managed according to the start and/**or** end dates.
- `Confidence Rate`: rate expressing the confidence in this link, and its priority order. See
the[Classify Resources](../categorization/classification.md) topic for additional information.

> Our examples would look like:
>
> ![**query rule** Example](/images/identitymanager/provrules_examplequery_v602.webp)
>
> ![**query rule** Example 2](/images/identitymanager/provrules_examplequerybis_v602.webp)

Click on **Create** and see a line added on the rules page.

## Impact of Modifications

Any modification in a **navigation** **or** **query rule** is taken into account when launching the role model computation task, in the **Resource Types** frame of the corresponding connector's overview page, via **Jobs** > **Compute Role Model**.

![Resource Type Jobs](/images/identitymanager/synchro_resourcetype_v602.webp)

This task applies the rules and computes new properties. Therefore, if a given rule's criterion is modified, then all corresponding assignments are computed again. If a resource was created automatically for an identity through a **navigation** rule (and its criteria), and if the user's criteria do not comply with the new version of the rule, then the corresponding resource is automatically deleted.

A modification in a provisioning rule can trigger the removal of a resource **only on the Identity Manager side**. There are several barriers to cross before said resource is removed from the managed system.

Simulations are available to anticipate the changes induced by a creation/modification/deletion in **navigation** and query rules. See the [Perform a Simulation](../../../admin/simulation/perform-a-simulation.md) topic for additional information.

## Verify Rule Creation

In order to verify the process:

**Step 1 –** On the corresponding connector's overview page, in the **Resource Types** frame click on **Jobs** > **Compute Role Model** to apply all rules.

![Resource Type Jobs](/images/identitymanager/synchro_resourcetype_v602.webp)

Review unauthorized accounts (on the **Resource Reconciliation** screen) and roles (on the **Role Reconciliation** screen) to help check query rules: if there are numerous properties to be reconciled following the same pattern, then there may be a rule that needs to be changed.

**Step 2 –** On the corresponding connector's overview page, in the **Resource Types** frame click on **Jobs** > **Compute Role Model** to apply all rules.

**Step 3 –** Review unauthorized accounts (on the **Resource Reconciliation** screen) and roles (on the **Role Reconciliation** screen) to help check query rules: if there are numerous properties to be reconciled following the same pattern, then there may be a rule that needs to be changed.

See the[Review an Unauthorized Account](../../../admin/non-conforming-assignment-review/unauthorized-account-review.md) and the[Reconcile a Role](../../../admin/non-conforming-assignment-review/role-reconciliation.md) topics for additional information.

