Update groups.yml (#23828)

Added new example query.

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
This commit is contained in:
Brock Walters
2024-11-15 14:25:32 -05:00
committed by GitHub
co-authored by Eric
parent 577b002ec6
commit d84fd349d5
2 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -11308,7 +11308,7 @@
"evented": false,
"cacheable": false,
"notes": "* On Windows, `gid` and `gid_signed` are always the same",
"examples": "See all groups with the IsHidden OpenDirectory attribute\n\n```\nSELECT * FROM groups WHERE is_hidden='1';\n```",
"examples": "See all groups with the `IsHidden` OpenDirectory attribute:\n\n```\nSELECT * FROM groups WHERE is_hidden='1';\n```\n\nCollect the users that are members of the `admin` group:\n\n```\nSELECT * FROM groups JOIN user_groups USING (gid) JOIN users USING (uid) WHERE groupname='admin';\n```",
"columns": [
{
"name": "gid",
+7 -1
View File
@@ -1,10 +1,16 @@
name: groups
examples: |-
See all groups with the IsHidden OpenDirectory attribute
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: