The NetApp Community is moving to a new platform and is in Read-Only mode. Click to learn more.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Automate Creation of User Home Directory Shares

shocko
5,124 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
5,002 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
5,003 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
4,960 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
4,936 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