How to disable user and delete user under laua via process flow

 12 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Vijay S
Veteran Member Send Private Message
Posts: 174
Veteran Member
We are developing a PF that automatically disables a user in Lawson security and after 60 days automatically deletes it from lawson security. Can anyone help me out how to disable/ delete it via process flow ?


Thanks,
Vijay
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
You will more than likely need to create a shell script and then call that script with a Command node within ProcessFlow.
David Williams
John Henley
Send Private Message
Posts: 3351
You can't really disable a user in Lawson, but assuming you have ProcessFlow Integrator, you could do this using ResourceUpdate nodes and a UserAction Node.

First, using a ResourceUpdate node, change their SSOP and environment identity to have invalid usernames.

Next, use a UserAction node to create a workunit, with action list of "Proceed" and "Cancel". Assign it to a task. Have the action timeout after 60 days, and have the timeout take the Proceed action.

After the UserAction, connect the Proceed action to a second ResourceUpdate node, and delete the user. Since the UserAction has been "holding" for 60 days, and times out, the workunit will resume after the 60 days, and fire the ResourceUpdate node to delete the user.

Assuming you assign the task to someone, they could intervene and use the "Cancel" action, and manually reset the SSOP and environment identity via Security Administrator.

Thanks for using the LawsonGuru.com forums!
John
Vijay S
Veteran Member Send Private Message
Posts: 174
Veteran Member
Thanks John and David for your help !!..... we have an integrator...... I'll try it out With the way you suggetsed.

Thanks,
Vijay
Vijay S
Veteran Member Send Private Message
Posts: 174
Veteran Member
John,

I am able to delete him from Lawson security via the way you told, I am also able to inactivate the User from RQ04, Is there a way out to delete the User from PF Set up ?

Thanks-
Vijay
jamesraceson
Veteran Member Send Private Message
Posts: 52
Veteran Member
Vijay,

Not to step on anyones toes, but I'm currently working on the same exact thing and have found two different ways to accomplish this through the WebRun node in PFI. One is very logic intensive and has more potential for error while the other still requires some good amount of work (setting up the nodes correctly), but is a little bit cleaner in my opinion and will accomplish deleting the User from the online PF set up. Currently we have our Approvers set up in the online PF set up with tasks for different approvals (Department Approver, Backup Approver) and with those tasks have different accounts set up that they can approve. Because of this we have to delete all three pieces that go with this (Task Category Definition, Task Definition, and Profile Definition).

I respect this site and the countless times I have used it as an invaluable resource where there is so very little out there, so I do not want to overstep my bounds but if John does not have an answer for you I would be happy to provide my examples of how I accomplish this.
John Henley
Send Private Message
Posts: 3351
jamesraceson, thanks for the kind words, and please, please feel free to overstep the bounds at any time!

Vijay, I agree with jamesraceson that you need to do this (carefully, and in the correct order), using the WebRun node. Just follow the steps you would use manually to remove the user from bpm/PF forms.
Thanks for using the LawsonGuru.com forums!
John
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
Basically, query through the WF tables and then call the various forms to delete:
Category Filter values bpm/xml/userCategoryForm.do
User Tasks bpm/xml/userTaskForm.do
Users bpm/xml/userProfileForm.do

You may also want to update their Lawson security WFUSER value back to zero.
David Williams
Vijay S
Veteran Member Send Private Message
Posts: 174
Veteran Member
Thanks to all for your suggestions..... I'll be trying to delete PF set up via WebRun Node.....
We are on 9.0 so I guess I can't delete them via WF forms or is there a way out ?


Thnx

- Vijay
jamesraceson
Veteran Member Send Private Message
Posts: 52
Veteran Member
Vijay,

We are also on 9.0. You can use the userCategoryForm.do, userTaskForm.do, and userProfileForm.do inside the WebRun node. Works like a charm.
jamesraceson
Veteran Member Send Private Message
Posts: 52
Veteran Member
If you would like some detailed examples, please let me know and I'll post them here. A couple of things to be careful of. One, the order in which you run the Form.do's is very important. They need to be run from the "bottom up". Think of it as you have to delete the children and then the parents. Two, the post string needs to be exact in the WebRun node for each Form.do (each one is different). Not all the fields need to be filled in with values, but all the fields still need to be passed for each one.
Vijay S
Veteran Member Send Private Message
Posts: 174
Veteran Member
Thanks James ! Thanks John ! Thanks David !..... Thanks for your Help ..... I have been able to delete the users via webRun node from PF Admin set Up by following the method you all suggested.....
David your link
http://consultdavidw.blog...t.com/2...ow-9x.html
was pretty useful..... No doubt this site very useful and helpful ........

Thanks
Vijay
RickyY
Veteran Member Send Private Message
Posts: 50
Veteran Member
Hi Vijay,


I'm trying to accomplish the same thing you're doing but instead of deleting them, I'm just disabling the user. We are on 9.0.1 lsf. Hopefully I'm not asking for too much but can you share your pf script for me to get a startup?

 

Thanks,

Neng