Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding possibility to define object selector for autoassignments (MID…
…-5497, MID-5734)
- Loading branch information
Showing
7 changed files
with
226 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
model/model-intest/src/test/resources/rbac/autoassign/role-unit-rider.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!-- | ||
~ Copyright (c) 2017 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
<role oid="9a60cdc6-f2ad-4414-964b-5fd1dfaec157" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" | ||
xmlns:piracy="http://midpoint.evolveum.com/xml/ns/samples/piracy"> | ||
<name>Unit Rider</name> | ||
<inducement> | ||
<construction xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance/10000000-0000-0000-0000-000000000004"> | ||
<resourceRef oid="10000000-0000-0000-0000-000000000004" type="c:ResourceType"/> | ||
<kind>account</kind> | ||
<attribute> | ||
<ref>ri:title</ref> | ||
<outbound> | ||
<expression> | ||
<value>Rider</value> | ||
</expression> | ||
</outbound> | ||
</attribute> | ||
</construction> | ||
</inducement> | ||
<autoassign> | ||
<enabled>true</enabled> | ||
<focus> | ||
<selector> | ||
<type>UserType</type> | ||
<archetypeRef oid="7135e68c-ee53-11e8-8025-170b77da3fd6" type="c:ArchetypeType"/> | ||
</selector> | ||
<mapping> | ||
<name>autoassign-rider</name> | ||
<trace>true</trace> | ||
<source> | ||
<path>organizationalUnit</path> | ||
</source> | ||
<condition> | ||
<script> | ||
<code>basic.stringify(organizationalUnit) == 'rider'</code> | ||
</script> | ||
</condition> | ||
</mapping> | ||
</focus> | ||
</autoassign> | ||
</role> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters