This command queries providers and the user database for a group. A provider query can be aggregated across providers to yield a merged result or it can be provider-specific.
You can also use this command to attach S3 identity policies to groups and to remove S3 identity policies from groups.
Usage for Retrieving a Group
group query {--gid GID | --groupname GROUPNAME | --sid SID | --vaid VID}
[--context local|udb|ad|ldap|nis|aggregated]
[--tenant-id ID]
Usage for Setting S3 Permissions
group query {--gid GID | --groupname GROUPNAME | --sid SID | --vaid VID}
[--identity-policies-ids [IDs]]
[--tenant-id ID]
Required Parameters
| Identifies a group by POSIX (NFS) group ID. |
| identifies a group by group name. |
| Identifies a group by Security Identifier (SID). |
| Identifies a group by VAST ID. |
Options
| Specify one of the following contexts:
|
| Assigns one or more S3 identity policies to the group. Specify Each time you run the command with this option, the list overrides the entire previous list of S3 identity policies that were attached to the group. To remove a policy from a group, specify a list that does not include the policy you wish to remove. To remove all policies from the group, do not specify a list of IDs. |
| Specify the ID of the tenant with which the group is associated. |
Example
vcli: admin> group query --gid 1000 +-----------------+----------------------------------------------+ | gid | 1000 | | sid | S-1-5-21-927172180-3694312366-24219317-41086 | | name | group_gid_1000 | | provider_type | NONE | | s3_policies | [] | | s3_policies_ids | [] | +-----------------+----------------------------------------------+