Mount SMB share based on user name

Hi, I would mount my samba shares in my Nextcloud. I have added the Esternal Storage support, and I have succesfully added a “static” folder (like “shared”) with credentials stored in session.
Now I would mount a folder based on user name logged in Nextcloud. User name and password are stored in my Active Directory server, already configured: users can already login to nextclud based on their user and password values.
The shared folder are like this:;;; …

Nextcloud 10, PHP 5.4, Centos 7 (Nethserver).

Thanks a lot!

I can think of many scenarios where something like this could be very useful. Although I don’t know of any way to help or contribute at this time, I would like to know if you’ve made any progress on this.

Mike Smith