Mapped drives depending on user?

Is there any way of mapping drives depending on which user is submitting jobs?
This would be really useful here for our freelancer machines which only have access to project specific folders on the server and which are always mapped to F: (for example).

This way I would be able to quickly add or remove project folders from the mapped drives and the freelancers don’t need to worry about things not rendering properly.

Cheers,

Dave

Hi Dave,

Do you mean to map a drive before a user submits a job to Deadline on their user workstation?
or
Do you mean a way to ensure a deadline slave maps certain drives when a job from a particular submitted user hits a slave?

Just making sure I understand your question :slight_smile:
Mike

The second one.
I want to set up a number of mapped drives in the repository options like:

if user==dave then F: = \nas\production\job1
if user==mike then F: = \nas\production\job2
etc.

This would make life a lot easier when giving freelancers access to different parts of the server depending on what they are currently working on.

Dave

Hello,

I talked to the developers, and there is no way in Deadline to set the path mapping differently based on the submitting user. Perhaps one of the python coders around here knows a way I don’t, but it is not presently supported.

Cheers,

Yeah, best bet for this… It’s theoretically possible from the render script if it’s access on the render script side.

For the client side if the drives need to be mapped on their workstation, there’s no framework in Deadline to hook into that at all…

You can get the current Deadline user from the DeadlineCommand program AFAIK and you could do whatever fancy stuff you want from that.

Was this needed on the workstation side, or the render node side?

Thanks for looking at this.
I ended up solving this on the fileserver side so that Deadline doesn’t have to do any mapping at all.
It’s probably a lot easier, I just didn’t think of it before…

Dave

Great to hear! Let us know if you have any other issues.