Does anyone know how to get a process model's "Last Published By" user? I can't find anything in the portal reports that exposes this information (though it's easily available via the modeler and the application manager)
OriginalPostID-223444
Discussion posts and replies are publicly visible
Hi Jin Pheh, just wondering which path you took to accomplish this use case? We need to republish process models modified by a certain user.
This is a very old thread. Nowadays we have the Content Tools Plug-in, which contains the up-to-date version of getProcessModelDetailsByUUID(), which you can use paired with other functionality (like a report containing all process models, etc) to accomplish your use case.
Unfortunately, we have about ~4,000 process models in our environment, and so looping all of the process models and retrieving the details via getProcessModelDetailsByUUID() , then republishing the models did not seem like a feasibly solution.
Just sharing here as well the path we chose: since Change username is already available since Appian 20.1, we just changed the username of the old administrator accounts to deployment.serviceaccount (just to follow our naming convention for service accounts) and added them to Service Accounts group to effectively convert them to deployment service accounts. Then we simply recreated our Basic user accounts.
Thanks
To be fair, if you built a process that looped through all process models and republished them as a service account user, it would only take a few seconds per model and could run unattended like overnight, and you'd be done with it.
However I also agree with your tactic of changing the published-by users (especially in the case of former users, etc) to service account users. A majority of my experience adminning a big production system is still from back in the days where we couldn't rename users and when there were no such thing as service accounts ;-)