Skip to main content

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

Display local users' membership information

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The vserver cifs users-and-groups local-user show-membership command displays the membership of local users.

Parameters

{ [-fields <fieldname>, ...]
If you specify the -fields <fieldname>, ... parameter, the command output also includes the specified field or fields. You can use '-fields ?' to display the fields to specify.
| [-instance ]}
If you specify the -instance parameter, the command displays detailed information about all fields.
[-vserver <vserver name>] - Vserver
If this parameter is specified, the command displays local user membership information for local users that are associated with the specified Vserver.
[-user-name <CIFS name>] - User Name
If this parameter is specified, the command displays local user membership information for a local user that matches the specified user name.
[-membership <CIFS name>, ...] - Local Group That This User is a Member of
If this parameter is specified, the command displays local user membership information for the local group of which this local user is a member.

Examples

The following example displays the membership information of all local users; user "CIFS_SERVER\Administrator" is a member of "BUILTIN\Administrators" group, and "CIFS_SERVER\u1" is a member of "CIFS_SERVER\g1" group.

cluster1::> vserver cifs users-and-groups local-user show-membership
Vserver User Name Membership
-------------- ------------------------------- ------------------------
vs1 CIFS_SERVER\Administrator BUILTIN\Administrators
CIFS_SERVER\u1 CIFS_SERVER\g1
2 entries were displayed.