/
043-role-delegator.xml
87 lines (87 loc) · 3.63 KB
/
043-role-delegator.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2016-2018 Evolveum
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<role oid="00000000-0000-0000-0000-00000000000c"
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3">
<name>Delegator</name>
<description>Role authorizing users to delegate their own privileges to any other user.</description>
<authorization>
<name>gui-delegator-access</name>
<description>
Allow access to the delegate functionality (e.g. "add delegation" button).
</description>
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-ui-3#delegate</action>
</authorization>
<authorization>
<name>delegator-req</name>
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#delegate</action>
<phase>request</phase>
<object>
<type>UserType</type>
</object>
<target>
<special>self</special>
</target>
</authorization>
<authorization>
<name>delegator-exec-user</name>
<description>
Quite strong universal execution rights are needed here. We are going to modify other users
(deputy assignments are in the delegate user, not delegator).
</description>
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#modify</action>
<phase>execution</phase>
<object>
<type>UserType</type>
</object>
</authorization>
<authorization>
<name>delegator-exec-shadow</name>
<description>
Quite strong universal execution rights are needed here. We are going to modify other users
(deputy assignments are in the delegate user, not delegator). Modification of other users
may mean also creation/modification/deletion of their accounts.
</description>
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#add</action>
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#modify</action>
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#delete</action>
<phase>execution</phase>
<object>
<type>ShadowType</type>
</object>
</authorization>
<authorization>
<name>delegator-read-delagate-assignments</name>
<description>
Authorization to read the assignments and assignment-related items from my delegates.
This authorization is necessary so the self-service GUI can properly display user's
delegations. Delegations are in fact assignments in the delegate object, not delegator
object. Therefore authorization to read just "self" will not display the delegations.
</description>
<action>http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</action>
<object>
<type>UserType</type>
<delegator>
<special>self</special>
</delegator>
</object>
<item>assignment</item>
<item>roleMembershipRef</item>
<item>delegatedRef</item>
</authorization>
<subtype>system</subtype>
</role>