2022-10-18 19:13:42 +00:00
|
|
|
name: groups
|
2024-05-27 23:18:56 +00:00
|
|
|
examples: |-
|
2024-11-15 19:25:32 +00:00
|
|
|
See all groups with the `IsHidden` OpenDirectory attribute:
|
2022-10-18 19:13:42 +00:00
|
|
|
|
|
|
|
|
```
|
|
|
|
|
SELECT * FROM groups WHERE is_hidden='1';
|
|
|
|
|
```
|
2024-11-15 19:25:32 +00:00
|
|
|
|
|
|
|
|
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';
|
|
|
|
|
```
|
2022-10-18 19:13:42 +00:00
|
|
|
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"
|