You can use dynamic root folders for this purpose.
The path can contain the below variables which will be dynamically replaced according to the logged in user. These variables can also be used in root folder's name:
{User} | User name of the logged in user. This will not contain domain part even if it's in the original name. |
{Domain} | This will be empty unless there is domain part in user's name |
{UserWithDomain} | Original name of the user. May contain domain part if it's in the original name. This is same as {user.name} from previous versions. |
For example, you can create a root folder with name
{User}’s folder
And with location
C:\UserFolders\{User}
So {User} is a placeholder which will be replaced with the logged in user’s name
You will need to add the created user to this root folder.
Or you can use a group so all members will have their own folder.
When a user named UserA who can access to this root folder logs in,
He will see a folder named
UserA’s folder
Which points to
C:\UserFolders\UserA
If the location does not exist, it will be automatically created.
For your case, your users are not named "no. 1 to 9" but your departments are, so you can make use of domain part of user name and do this:
For example, you can create a root folder with name
{User}’s department
And with location
x:\assets\images\{Domain}
When a user named JohnDoe@1 who can access to this root folder logs in,
He will see a folder named
JohnDoe’s department
Which points to
x:\assets\images\1
So if you rename your users like JohnDoe@1 or 1\JohnDoe, the domain part will the department no. By the way JohnDoe@1 can still log in with only typing JohnDoe without domain part.