Skip to content

Commit f659d22

Browse files
committed
docs: add group example
1 parent 3353fe9 commit f659d22

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

data-security/workspace/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@ Another challenge for configuring users is you need to specify the password, whi
88

99
You can skip this if you have [SCIM](https://www.bytebase.com/docs/administration/scim/overview/) to
1010
provision users and groups in an organization.
11+
12+
```bash
13+
curl --request POST ${bytebase_url}/v1/groups \
14+
--header 'Authorization: Bearer '${bytebase_token} \
15+
--data @group.json
16+
```

data-security/workspace/group.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "groups/[email protected]",
3+
"title": "Contractor Group",
4+
"description": "A group for contractors",
5+
"creator": "users/[email protected]",
6+
"members": [
7+
{
8+
"member": "users/[email protected]",
9+
"role": "OWNER"
10+
}
11+
],
12+
"createTime": "2024-10-11T16:30:40.608Z"
13+
}

0 commit comments

Comments
 (0)