<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
On 11/11/2015 01:40 PM, Roman Pudil - AMI Praha a.s. wrote:<br>
</div>
<blockquote
cite="mid:em1f480313-c1ca-4b14-81a4-e1bffe4c0879@rpudil-dell7440"
type="cite">
<style id="eMClientCss">
blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
.plain pre, .plain tt { font-family: monospace; font-size: 100%; font-weight: normal; font-style: normal; white-space: pre-wrap; }
a img { border: 0px; }body {font-family: Tahoma;font-size: 12pt;}
.plain pre, .plain tt {font-family: Tahoma;font-size: 12pt;}</style>
<div>I have a user in midPoint with enabled state. Now, I want to
create new account on Active Directory resource, but with
disabled state. Then AD admin performs settings of this account
(add another info, add initial password etc.) and enable it. And
from now i want to manage user/account state from midPoint.</div>
<div>Another words, I need set disable state of account during
creation on resource (independent on user state in midPoint),
and later I need manage state from midPoint.</div>
<div> </div>
<div>How to construct "activation" part in resource definition (or
"inducement" part in role, which assigned this resource)?
</div>
</blockquote>
<br>
You need a weak outbound mapping for administrativeStatus. Weak
mapping will only be applied when there is no target value. For
activation administrativeStatus this only happens when the account
is created. So that should work for you.<br>
<br>
Alternatively you can use "operation" variable. This variable should
be available to all mappings. It describes the operation that is
being performed (add, modify or delete).<br>
<br>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
</body>
</html>