Paul S. Withers 7.Sep.11 06:10 AM a Web browser LEILEI - 8.0Windows
I am trying to run a scripted activity in LEI. A little while ago the ID the job was created under was renamed with a new OU. LEI is on a different server, so the rename may not have updated the LEI Administrator database.
In my agent, I write out a log of activity to a separate database. That document is created with the authority of the signer of the LEI Administrator, namely the server. The agent being run is signed by the updated signer with the new OU. However, when I log from the agent session.effectiveUserName, I don't get either of these. I get the original signer with the old OU.
I had already edited and saved the LEI job several times (which is what RefreshAllDocuments agent does). The Creator field had the old OU, but I have updated that, with no change to the behaviour. I can't see any other field with the old OU, apart from $UpdatedBy, which can't be updated. Where could the old OU be picked up from and where can I change the effective user name?
Recreating the LEI jobs may work, but seems an excessive workaround
====
Update:
Someone had set the security years ago to run as a specific user, even though the agent would be run by LEI and only ever with an authority that had access to all documents.