Skip to content

Commit

Permalink
added instructions on how to delete a user (argoproj#14488)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hernandez <[email protected]>
Co-authored-by: pasha-codefresh <[email protected]>
  • Loading branch information
christianh814 and pasha-codefresh committed Jul 13, 2023
1 parent 927b940 commit 0fd5a99
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/operator-manual/user-management/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,24 @@ Each user might have two capabilities:
* apiKey - allows generating authentication tokens for API access
* login - allows to login using UI
### Delete user
In order to delete a user, you must remove the corresponding entry defined in the `argocd-cm` ConfigMap:

Example:

```bash
kubectl patch -n argocd cm argocd-cm --type='json' -p='[{"op": "remove", "path": "/data/accounts.alice"}]'
```

It is recommended to also remove the password entry in the `argocd-secret` Secret:

Example:

```bash
kubectl patch -n argocd secrets argocd-secret --type='json' -p='[{"op": "remove", "path": "/data/accounts.alice.password"}]'
```

### Disable admin user

As soon as additional users are created it is recommended to disable `admin` user:
Expand Down

0 comments on commit 0fd5a99

Please sign in to comment.