Skip to Content
0
Former Member
Dec 10, 2013 at 11:02 AM

How to pass Repository ID into manual Provisionong task?

120 Views

Hello Guru!

We have several SAP system where account name contains LastName, so periodically we need to delete users and create new one for people who change lastname.

We began to use IDM 7.2. But now I can't understand how to delete users and create them manually and correctly.

I did the following:

1. set the event task for "Modify" of MX_LASTNAME:

2. In "Rename" pass I execute my script "custom_manual_Provisioning":

the script:

function custom_manual_Provisioning(Par)

{

var MSKey = Par.get ("MSKey");

var TaskID = Par.get("TaskID");

var MyAudit = "";

var Repository = uGetRepositoryID();

uInfo("Repository=" + Repository);


MyAudit=uProvision(MSKey, TaskID, 0, Repository, "", 60);

}

But function "uGetRepositoryID" returns value "-1" and task "Delete user" finished with error "Parameter backend host ('ashost') is missing", because task doesn't know in what Repository user has to be deleted.

How can I say to uProvision what repository it has to use to delete user? Do I need to get it via select from idmv_* tables or maybe there is some more simple way to Delete user manually?

Or maybe be my solution is fully incorrect and I need to do something other to manually delete and then create user?

Thanks in advance,

Natalia.

Attachments

rename.jpg (27.7 kB)
man_del.jpg (25.2 kB)