Skip to main content

Display information about group memberships for local users

Contributors netapp-ahibbard netapp-aherbin

You can display information about which local groups that a local user belongs to. You can use this information to determine what access the user should have to files and folders. This information can be useful in determining what access rights the user should have to files and folders or when troubleshooting file access issues.

About this task

You can customize the command to display only the information that you want to see.

Step
  1. Perform one of the following actions:

    If you want to…​ Enter the command…​

    Display local user membership information for a specified local user

    vserver cifs users-and-groups local-user show-membership -user-name user_name

    Display local user membership information for the local group of which this local user is a member

    vserver cifs users-and-groups local-user show-membership -membership group_name

    Display user membership information for local users that are associated with a specified storage virtual machine (SVM)

    vserver cifs users-and-groups local-user show-membership -vserver vserver_name

    Display detailed information for all local users on a specified SVM

    vserver cifs users-and-groups local-user show-membership -instance ‑vserver vserver_name

Example

The following example displays the membership information for all local users on SVM vs1; user “CIFS_SERVER\Administrator” is a member of the “BUILTIN\Administrators” group, and “CIFS_SERVER\sue” is a member of “CIFS_SERVER\g1” group:

cluster1::> vserver cifs users-and-groups local-user show-membership -vserver vs1
Vserver    User Name                    Membership
---------- ---------------------------- ------------------------
vs1        CIFS_SERVER\Administrator    BUILTIN\Administrators
           CIFS_SERVER\sue              CIFS_SERVER\g1