How to return the ID of a user account created in a custom target system

Hello,

i am using a Powershell Sync Project to connect a custom target system to Identity Manager via Rest API.

Right now i have the use-case, where i want to insert a new user into the target system, which was created by a account definition.

The account is created successfully in the target system, but I now need to enter the system-specific UserID into the 'UnsAccountB' entry of the account, as specified in the REST response of the Create call API Call.

Ive already tried to add a Return Binding into the definition.xml but nothing has changed.

I am looking forward to your replies!

Parents Reply Children
  • Hey  , thanks four you Reply!


    Actually, I am struggling one step ahead. When I run my Insert provision workflow, I get the following error in the sync log: [System.Exception] No Property id found

    I am confused by this error message, since I am 100% sure that the property is there.

    To prove it exists, I also printed the PowerShell variable ($Response.Id) to a .txt file, which worked.

    (Interestingly, even if the provision only runs once, the user is created twice in the custom target system. - I don't know why.-

    If i remove the return binding of the Add-User Property in the .xml, the account is only created once, as it should be.)

    I have already spent several hours on this topic and I don't know what else to check.

    Do you have any clue where it could fail?

    Thanks in advance!