Skip to content

Commit 57d04f7

Browse files
Add cookbook recipe for removing a user from all sites in an org
1 parent 5d0ea74 commit 57d04f7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/Cookbook.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Cookbook
2+
3+
Methods for common needs
4+
5+
## Remove a user from all sites within an organization
6+
7+
This can be accomplished with a shell one-liner:
8+
9+
```bash
10+
for SITE in $(terminus org:site:list $ORG --format=string --field=name); do
11+
terminus site:team:remove $SITE $EMAIL
12+
done
13+
```
14+
15+

0 commit comments

Comments
 (0)