# AssignmentConstraintsType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Specifies constraints on assignments that are placed in the same focus. It can be used to prohibit multiple assignment of the same role and for similar cases. There are several individual constraints in the type. There is a logical AND between them. This means that if no constraint can be violated. All active constraints must be satisfied at the same time.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
description | property string | [0,1] |
allowSameTarget | property boolean | [0,1] | Constraint all assignments that have the same target.
allowSameRelation | property boolean | [0,1] | Constraint all assignments that have the same relation.

- ### Items

  - #### description

    Flags: RAM,runtime

    Multiplicity: [0,1]

  - #### allowSameTarget

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Constraint all assignments that have the same target. I.e. multiple assignments of the same (abstract) role. If allowSameTarget=true then multiple assignments of the same role are allowed. If allowSameTarget=false then multiple assignments of the same role are prohibited. (but see also other constraints in this type)

  - #### allowSameRelation

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Constraint all assignments that have the same relation. E.g. if allowSameTarget=true and allowSameRelation=false then multiple assignments of the same role are allowed as long as they have different relation.