> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/human-capital-management/detect-employee-assignment-overlap.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Detect Employee Assignment Overlap

Finds overlapping organization, position and job assignments for one employee with validity checks. Read-only.

| Business area            | Action type |
| ------------------------ | ----------- |
| Human Capital Management | Read-only   |

## Overview

An employee in IFS Cloud can hold several organization/position assignments (CompanyPersAssign) with date intervals, one of which is primary, and each can carry a cost DistributionPercent. Job details (EmpJobAssign) have their own intervals and a primary flag.

Reads employee assignment rows and computes overlap findings.

## How it works

{% stepper %}
{% step %}
Header: QryCompanyPersActives.
{% endstep %}

{% step %}
Org assign: CompanyPersAssignActs.
{% endstep %}

{% step %}
Jobs: EmpJobAssigns.
{% endstep %}

{% step %}
Validity: CompanyOrgs and CompanyPositions batch.
{% endstep %}

{% step %}
Detect: Pairwise overlap rules A1/A2.
{% endstep %}
{% endstepper %}

## Key capabilities

* Resolves one employee by CompanyId and EmpNo and refuses guessed identifiers.
* Lists all organization/position assignments with dates, primary flag, assignment type and distribution percent.
* Lists job assignments with primary-job flag and intervals.
* Computes pairwise date overlaps (inclusive) in the evaluation window.
* Detects overlapping primary assignments, duplicate org+position overlaps, and distribution totals above 100 %.
* Checks each assignment against organization and position validity dates.
* Detects gaps where the employee has no primary assignment.
* Separates legitimate matrix/secondary overlaps (INFO) from conflicts.
* Returns a verdict table and one next step.

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection                                 |
| --------- | ------------------------------------------ |
| PERSON    | SingleEmployeeAssignmentsHandling          |
| PERSON    | OrganizationAndPositionAssignmentsHandling |

## Version compatibility

| Projection                                 | Supported IFS Cloud releases |
| ------------------------------------------ | ---------------------------- |
| SingleEmployeeAssignmentsHandling          | 24R2, 25R1, 25R2, 26R1, 26R2 |
| OrganizationAndPositionAssignmentsHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
* Requires projection-level security. Permission errors halt the run.
