Is there a way to force the function getdeactivatedusersby to run as a specified user instead of as the logged in user?
Discussion posts and replies are publicly visible
I do agree with yoga . for executing this function you can use script task and in assignment select run as whoever designed the process model. so that script task will execute as a system admin .