Hello
I am trying to figure out how to get a client or API service as xelsysadm, without doing a remote client with client.login().
I have a custom ADF Taskflow that I deployed within OIM ( a custom link on the Self Service left nav bar opens a custom tool as a tab right within OIM ). I am currently running some API code as the currently logged in user and I'm getting the API services using OIMClientFactory like so:
userService = OIMClientFactory.getUserManager()
But I need the ability to run some code as either xelsysadm or a system account (oiminternal or whatever). I tried using Platform but that apparently does not work in this context (please correct me if I'm wrong).
I know that in event handlers and adapters, you can use Platform.getService() to get API services that run as system admin, but how does one do that in ADF? Is there a way to change the context or what is the best practice here?
My backup alternative is to store the xelsysadm creds in the CSF store and do a client.login() but I really would prefer to not to do that.
If anyone has any insight, I'd very much appreciate it!
Thank you