<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="en-CH" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Dear all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I want the user can unassign roles that assigned to them. But I cannot set the authorization properly. It always show error “AccessDenied”.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you very much for your help in advanced!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried what this page said:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://docs.evolveum.com/midpoint/reference/security/authorization/configuration/">https://docs.evolveum.com/midpoint/reference/security/authorization/configuration/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><img border="0" width="870" height="209" style="width:9.0583in;height:2.175in" id="Picture_x0020_1" src="cid:image001.png@01D79B62.0E2D2960"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">This is my code for unassignment:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#2B2B2B"><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"><authorization><br>
    <name></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">self-execution-modify</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></name><br>
    <action></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000"><a href="http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#modify</action">http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#modify</action</a></span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000">><br>
    <phase></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">execution</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></phase><br>
    <object><br>
        <special></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">self</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></special><br>
    </object><br>
    <</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9876AA;mso-fareast-language:#2000">c</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000">:item></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">credentials</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9876AA;mso-fareast-language:#2000">c</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000">:item><br>
    <</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9876AA;mso-fareast-language:#2000">c</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000">:item></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">assignment</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></</span><span style="font-size:10.0pt;font-family:"Courier New";color:#9876AA;mso-fareast-language:#2000">c</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000">:item><br>
</authorization><br>
<authorization><br>
    <name></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">assign-roles</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></name><br>
    <action></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000"><a href="http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#assign</action">http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#assign</action</a></span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000">><br>
    <phase></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">request</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></phase><br>
    <object><br>
        <special></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">self</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></special><br>
    </object><br>
    <target><br>
        <type></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">RoleType</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></type><br>
    </target><br>
    </authorization><br>
<authorization><br>
    <name></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">unassign</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></name><br>
    <action></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000"><a href="http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#unassign</action">http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#unassign</action</a></span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000">><br>
    <phase></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">request</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></phase><br>
    <object><br>
        <type></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">RoleType</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></type><br>
    </object><br>
    <target><br>
        <special></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000">self</span><span style="font-size:10.0pt;font-family:"Courier New";color:#E8BF6A;mso-fareast-language:#2000"></special><br>
    </target><br>
</authorization></span><span style="font-size:10.0pt;font-family:"Courier New";color:#A9B7C6;mso-fareast-language:#2000"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hsin-Fang<o:p></o:p></span></p>
</div>
</body>
</html>