8.2. Pruning groups
To prune groups records from an external provider, administrators can run the following command:
$ oc adm prune groups \ --sync-config=path/to/sync/config [<options>]
Options | Description |
---|---|
| Indicate that pruning should occur, instead of performing a dry-run. |
| Path to the group blacklist file. |
| Path to the group whitelist file. |
| Path to the synchronization configuration file. |
To see the groups that the prune command deletes:
$ oc adm prune groups --sync-config=ldap-sync-config.yaml
To perform the prune operation:
$ oc adm prune groups --sync-config=ldap-sync-config.yaml --confirm