@ipobeidi I see, thanks. What I was trying to do is the following: Store the last generated sAMAccountName in a Transform object. Make an HTTP request to IDN to get the last generated sAMAccountName, increment to the next sAMAccountName for that user, then make a REST call again to Update the tranhsform with the current name… and so on. I was planning to run this logic to generate the sAMAccountName in the AD Before Provisioning Rule. But the REST Client object is not implicitly available in these types of rules.
I will take a new approach now:
store the last generated sAMAccountName in the application object. Use the AD BeforeCreate rule to access the application object and then generate the next sAMAccountName and pass on to the provisioningplan. Then update the application object back again with the new sAMAccountname value. - this I have to see if it works and is feasible