Not sure what you are completely after :
- Do you need the job in BL to be executed as a particular user ?
- Or do you need the deployment-tasks on the target be executed as a particular user ?
As i suppose you mean the actions on the targets like scripts you asking for in scenario 2,
you should really have a look at the documentation starting here for example.
It is mandatory to understand these BL techniques !
Some high-level steps on how to achieve what you are after in an flexiable "enterprise" way:
1.) Create a Role in BL that you want to use for your deployment tasks (You could of course use an existing one)
2.) On the "Agent ACL" tab of the role see the "Platform Related" section.
3.) As you are asking for Unix: You can
a.) Enter "oldeploy" under "Map to:"
b.) Use Property: (You could link to a custom property here, which you would need to define before)
4.) Grand permissions for your new Role on the server, depot-object, job, etc....(I assume you have basic knowledge of BL's RBAC here)
5.) Push the targets ACL
- After the you will see that on the target the "users" file will contain entries like that:
6.) When you now deploy a package to your target or execute a script using your newly created role, the RSCD agents maps you to the user "oldeploy" on the target.
I know this is a very brief description, but i hope it helps.
Thanks a lot Steffan.
Actually your answers are enlightening me on RBAC Stuff.
I am actually new to this tool and working my way through.
I would try to implement your suggessions and actually get to learn more about RBAC as well.
More than happy to help.
Let me know if you need more details on any specific area.