How to lock a user

Hi,I have a workflow in which I want to lock a user.I would appreciate if anyone could provide an exampleas to how to do this.Thanks,John I
[181 byte] By [johnia] at [2007-11-27 7:42:06]
# 1
To be more specific,I would like to lock the lighthouse user only.I can checkout a userview, but I cannot find a way to lock the lighthouse account so that the user cannot loginthrough any IDM interfaces.Thanks.
johnia at 2007-7-12 19:22:51 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
After you check out view then uselockOrUnlock Provision Workflow Servicemake lock variable true.Thx
gvivek99a at 2007-7-12 19:22:51 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

Thanks for the hint. I got it working with the following code:

<Activity id='9' name='Lock Lighthouse User'>

<Action id='0' application='com.waveset.provision.WorkflowServices'>

<Argument name='op' value='lock'/>

<Argument name='doLighthouse' value='true'/>

<Argument name='doResources' value='false'/>

<Argument name='accountId'>

<ref>WF_CASE_OWNER</ref>

</Argument>

</Action>

<Transition to='end'/>

<WorkflowEditor x='352' y='182'/>

</Activity>

Even though the IDM 6.0 SP1 documentation

talks about a lockOrUnlock workflow service,

(as you mention),

it appears that there is no such thing.

There is however an undocumented

'lock' workflow service which calls

a lockOrUnlock private java method.

This mirrors the correctly documented

enable and disable workflow services,

which also internally call a private java method

disableOrEnable.

More bad documentation I think.

Thanks for you help.

John I

johnia at 2007-7-12 19:22:51 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4
OK, I got the account locking working,now does anyone know how I can test if an account is locked?Thanks,John I
johnia at 2007-7-12 19:22:51 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5

I'm not sure that this is true for versions before 7.0 (I would guess so but I haven't checked), but if you checkout a user view, a locked out user will have the {view variable}.waveset.locked variable set to a Boolean true, while a non locked user will have that variable null. You can also manually set it to a Boolean true or false and check in the view as an alternative to the provisioning service that you used if you so desire.

-David

rundlca at 2007-7-12 19:22:51 > top of Java-index,Web & Directory Servers,Directory Servers...
# 6
Hi,I tried ypur suggestion of checking waveset.locked within IDM 6.0 SP1and it works. Thanks for for your help.John I
johnia at 2007-7-12 19:22:51 > top of Java-index,Web & Directory Servers,Directory Servers...