mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-09 20:26:33 +00:00
- Rename all docker-compose.yml templates to compose.yml - Update override and CA override filenames accordingly - Adjust compose wrapper, lookup plugins, filters and path helpers - Update roles, tasks, handlers and scripts to use compose CLI - Rewrite documentation and admin guides to reference compose - Update unit and integration tests to expect compose.yml - Keep internal variable keys for backward compatibility where needed https://chatgpt.com/share/69870272-b168-800f-84c3-6417398e441f
43 lines
982 B
Markdown
43 lines
982 B
Markdown
# User Administration
|
|
|
|
### List Users
|
|
```bash
|
|
compose exec -it -u www-data application php occ user:list
|
|
```
|
|
|
|
### Get User Info
|
|
```bash
|
|
compose exec -u www-data application php occ user:info {{username}}
|
|
```
|
|
|
|
### Sync Users
|
|
```bash
|
|
compose exec -it -u www-data application php occ user:sync
|
|
```
|
|
|
|
### Create user via CLI
|
|
```bash
|
|
compose exec -it -u www-data application php occ user:add {{username}}
|
|
```
|
|
|
|
### Make user admin via cli
|
|
```bash
|
|
compose exec -it -u www-data application php occ group:adduser admin {{username}}
|
|
```
|
|
|
|
### Delete user via CLI
|
|
```bash
|
|
compose exec -it -u www-data application php occ user:delete {{username}}
|
|
```
|
|
|
|
### Delete all User (if no ldap is used)
|
|
```bash
|
|
for user in $(compose exec -u www-data application php occ user:list --output=json | jq -r 'keys[]'); do
|
|
compose exec -u www-data application php occ user:delete "$user"
|
|
done
|
|
```
|
|
|
|
### Identify users which exist still in nextcloud but not in LDAP anymore
|
|
```bash
|
|
occ ldap:show-remnants
|
|
``` |