The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Microsoft Virtualization Discussions

Get-NaCifsShareAcl doesnt'show all users


Hi all,

I'm trying to get all the allowed users that acces a CIFS share, I know they're about one hundred, but if I issue the cmdlet in the subject I can see only a few of them. I alredy tried to pipe it into Format-List or Format-Custom, with no luck. It shows only the first four or five users.

Any suggestion or help?

Thank you




Hi, Francesco.  I'm not sure I understand your question, but I'll try.  Get-NaCifsShareAcl returns objects of type CifsShareAclInfo, which contains an array property UserAclInfo:

PS C:\> Get-NaCifsShareAcl | gm

   TypeName: NetApp.Ontapi.Filer.Cifs733.CifsShareAclInfo

Name        MemberType Definition

----        ---------- ----------

Equals      Method     bool Equals(System.Object obj)

GetHashCode Method     int GetHashCode()

GetType     Method     type GetType()

ToString    Method     string ToString()

Validate    Method     System.Void Validate()

ShareName   Property   System.String ShareName {get;set;}

UserAclInfo Property   NetApp.Ontapi.Filer.Cifs733.AccessRightsInfo[] UserAclInfo {get;set;}

You just have to look in the UserAclInfo array:

PS C:\> (Get-NaCifsShareAcl test).UserAclInfo

AccessRights  UnixGroupName  UserName

------------  -------------  --------

Full Control                 everyone

Full Control                 DUNN\krusty

NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner