-
On the Users tab, click the Query Users button (
).
-
In the Query Users dialog, in the Context field, select which provider(s) to query:
-
Local. Searches the local provider.
-
Aggregated. Searches all providers and retrieves a merged user entry. In case of conflicts between providers, attributes are resolved according to the following rules:
-
In case of conflict between local and non local providers, the local provider's attributes override those of the other providers.
-
In case of conflicting POSIX attributes on external providers, the POSIX primary provider overrules the other external provider.
-
Users are merged if their match user attributes match. The match user attribute is configurable in that you can set which attribute on the POSIX primary provider is used to match the users.
-
All groups found for the user on all providers with distinct group names are treated as distinct groups to which the user belongs. Groups are merged if they match according to a non-configurable group name attribute.
-
-
AD, NIS or LDAP. Searches the specific provider only. (Each of these options appears only if a provider of that type is connected to the cluster.)
-
-
Enter one user attribute value to search for in the field provided for the attribute. You can search for any of the following:
-
UID (posix (NFS) user ID)
-
Username
-
SID (SMB user SID)
Note
Enter the entire exact string. Partial values and wildcards are not supported.
-
-
Click Query.
If no user is found, an error message appears ("No user matches the given query") and the dialog remains open so that you can run another query.
If a user is found that matches the query, the user's details are displayed in the Users tab. The context of the recent query is shown by the context indicator above the grid.
Tip
For an aggregated query, you can see which provider each attribute was retrieved from: Click the Actions button () to open the Actions menu for the user and select Edit. In the Update User dialog, the provider is displayed below each attribute that was retrieved for the user.

Tip
To clear the query, click the clear query button: . The default listing of any and all local users is restored to the tab.
To query a user from the VAST CLI, use the user query
command.
The output of an aggregated query (the default context) shows which provider each attribute was retrieved from:
vcli: admin> user query --uid 1000 +---------------------+----------------------------------------------------------------------+ | uid | 1000 (NIS) | | sid | S-1-5-21-927172180-3694312366-24219317-32136 (AD) | | leading_group | {'name': '', 'gid': 1000, 'sid': ''} (NIS) | | leading_group_name | | | primary_group_sid | {'name': '', 'gid': 0, 'sid': 'S-1-5-21-927172180-3694312366-24219317-513', 'valid_flags': 4} (AD) | | name | vastdata | | groups | ['Remote Desktop Users', 'VastRDP', 'Remote Access Users', 'ad_child_group', 'ad_testgroup_1', 'ad_testgroup_2', 'VastRND', 'ad_parent_group', 'GroupUniversal', 'vastdata'] | allow_create_bucket | False | | allow_delete_bucket | False | | access_keys | [] | +---------------------+----------------------------------------------------------------------+
Comments
0 comments
Article is closed for comments.