fleet/schema/tables/groups.yml
Brock Walters d84fd349d5
Update groups.yml (#23828)
Added new example query.

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
2024-11-15 14:25:32 -05:00

27 lines
605 B
YAML

name: groups
examples: |-
See all groups with the `IsHidden` OpenDirectory attribute:
```
SELECT * FROM groups WHERE is_hidden='1';
```
Collect the users that are members of the `admin` group:
```
SELECT * FROM groups JOIN user_groups USING (gid) JOIN users USING (uid) WHERE groupname='admin';
```
columns:
- name: group_sid
platforms:
- windows
- name: comment
platforms:
- windows
- name: is_hidden
platforms:
- darwin
- name: pid_with_namespace
platforms:
- linux
notes: "* On Windows, `gid` and `gid_signed` are always the same"