ONTAP Discussions

Automate Creation of User Home Directory Shares

shocko
2,176 Views

I'm looking  automate the creation of user home directory shares on my OnTap 9.3 cluster. Initially I went down the route of exposing the root of the CIFS volume as users$ (locked down to admins of course) then using a Powershell script to create the user folder then modify the DACL/SACL and ownership. This worked well but I was wondering if there is a API I could leverage within OnTap to do this?

1 ACCEPTED SOLUTION

RossC
2,054 Views

Hi @shocko 

 

This section of our ONTAP Docs might help you out here - https://docs.netapp.com/us-en/ontap/smb-admin/add-home-directory-share-task.html 

 

It speaks to what options you have for add home directories dynamically and manually. 

 

Hope this helps! 

View solution in original post

3 REPLIES 3

RossC
2,055 Views

Hi @shocko 

 

This section of our ONTAP Docs might help you out here - https://docs.netapp.com/us-en/ontap/smb-admin/add-home-directory-share-task.html 

 

It speaks to what options you have for add home directories dynamically and manually. 

 

Hope this helps! 

shocko
2,012 Views

Thanks @RossC . I'm not clear though on which config results in the actual creation of a new user share though? It seems to outline how to create the root location and the share search path (~%d~%w for example) but it seems you still have the create the folder for the user underneath. 

RossC
1,988 Views

Hi @shocko 

 

Some of the follow-up articles in the same section might help,

 

If you're still not sure from a configuration standpoint on how to handle this, please consider reaching out to your local NetApp partner or Sales Team and they can help provide you some advice.

Public