-
Notifications
You must be signed in to change notification settings - Fork 188
/
role-unit-sleeper.xml
57 lines (57 loc) · 2.11 KB
/
role-unit-sleeper.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!--
~ 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="660f0fb8-bfec-11e7-bb16-07154f1e53a6"
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 Sleeper</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>Sleeper</value>
</expression>
</outbound>
</attribute>
</construction>
</inducement>
<autoassign>
<enabled>true</enabled>
<focus>
<selector>
<type>UserType</type>
</selector>
<mapping>
<name>autoassign-sleeper</name>
<trace>true</trace>
<source>
<path>organizationalUnit</path>
</source>
<condition>
<script>
<code>basic.stringify(organizationalUnit) == 'sleeper'</code>
</script>
</condition>
<populate>
<populateItem>
<expression>
<value>2222-01-02T03:04:05.000Z</value>
</expression>
<target>
<path>activation/validTo</path>
</target>
</populateItem>
</populate>
</mapping>
</focus>
</autoassign>
</role>