Monday, March 15, 2010

How to add Enable, Disable, Revoke Functionality for Resource Objects in OIM

How to add Enable, Disable, Revoke Functionality for Resource Object in OIM so that "Enable" , "Disable" and "Revoke" button works on User's Resource Profile form in OIM Web Client.

Follow these steps:

1) Login to java client as "xelsysadm" user and create a resource object Ro1 for User with allow all, allow multiple check boxes checked.

2) Create a provisioning process Ro1_pp and attach the resource Ro1 with this.

3) Add a task "Enable". Check the conditional, allow multiple instances check boxes. Select task effect as "Enable process or Access to application" and save.

4) Move to integration tab and select system handler task "tcCompleteTask" and save.

5) Move to Task to object status mapping and map completed to "Enabled" object status.

6) Add another task as "Disable". Check the conditional, allow multiple instances check boxes. Select task effect as "Disable process or Access to application" and save.

7) Move to integration tab and select system handler task "tcCompleteTask" and save.

8) Move to Task to object status mapping and map completed to "Disabled" object status.

9) Add another task as "Revoke". Check the conditional check box.select task effect as "No effect" and save.

10) Move to integration tab and select system handler task "tcCompleteTask" and save.

11) Move to Task to object status mapping and map completed to "Revoked" object status.

12) Add another task as "Provision". Check allow multiple instances check boxes

13) Move to integration tab and select system handler task "tcCompleteTask" and save.

14) Move to Task to object status mapping and map completed to "Provisioned" object status.

15) Move to undo/recovery tab and assign "Revoke" task in Undo Tasks section.

16) Now provision this "Ro1" resource to any user e.g. "user1".

17) Resource will be provisioned to "user1" and Ro1's status will be "Provisioned".

Expected results after clicking:

Disable : check the disable check box against the resource and click on disable button
Expected result -> Resource get disabled.

Enable: check the enable check box against the resource and click on enable button
Expected result -> Resource get enabled.

Revoke: check the revoke check box against the resource and click on revoke buttonExpected result -> Resource get revoked