i tried compiling as usrprf(*owner) with a profile whose userid and password are the same on both i5 and network, but that didn’t seem to have any effect.
The IFS access methods do not honor adopted authority. The file systems have no concept of ‘adopted authority’.
i see “set job user identity” api’s, “set profile handle” api’s, “set user profile” api’s, “profile token” api’s…… and can’t tell by their descriptions what i should use.
If the program can’t run under users who have matching profiles/passwords, the simplest route is to go with the Set Profile Handle (QWTSETP, QsySetToProfileHandle) API and the related APIs. The API will change the job’s ‘current user’ until you set it back to the original user.
If you need basic examples, I can supply them. The ‘profile handle’ APIs are pretty simple, but there might be a couple confusions.