<!--
  ~ Copyright (c) 2024-2025 Evolveum and contributors
  ~
  ~ Licensed under the EUPL-1.2 or later.
  -->

<archetype oid="3cc72762-030e-4161-bd9a-5fa9cb4fd935"
        xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
        xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3">
    <name>Team</name>
    <description>Archetype for general-purpose teams, that are either stand-alone, or cross organizational boundaries. E.g. expert panels, committees, task force, advisory groups, interest groups, etc.</description>
    <documentation>(ISO27001/A.5.15,ISO27001/A.5.16)</documentation>
    <archetypePolicy>
        <display>
            <label>
                <orig>Team</orig>
                <translation>
                    <key>team.label</key>
                </translation>
            </label>
            <pluralLabel>
                <orig>Teams</orig>
                <translation>
                    <key>team.pluralLabel</key>
                </translation>
            </pluralLabel>
            <icon>
                <cssClass>fa fa-people-group</cssClass>
                <color>#ffc107</color>
            </icon>
        </display>
    </archetypePolicy>
    <assignment id="1">
        <identifier>holderType</identifier>
        <description>This archetype can be applied to orgs (OrgType).</description>
        <assignmentRelation id="2">
            <holderType>OrgType</holderType>
        </assignmentRelation>
    </assignment>
    <inducement id="3">
        <identifier>membership</identifier>
        <description>Teams are flat (no sub-teams), have members and manager.</description>
        <assignmentRelation id="4">
            <description>User can be direct member of team, as well as manager.</description>
            <holderType>UserType</holderType>
            <relation>org:default</relation>
            <relation>org:manager</relation>
        </assignmentRelation>
    </inducement>
</archetype>
