[Samba] removing all memberOf from a user - remove a user from all Groups

Rowland Penny rpenny at samba.org
Tue Jun 29 15:47:35 UTC 2021

On Tue, 2021-06-29 at 17:07 +0200, Götz Reinicke via samba wrote:
> Hi folks,
> Is there an easy way to remove all memberOf from a user/remove a user
> =
> from all Groups? As some dozen users are affected, removing manually
> one =
> by one would be very time-comsuming.

Simple bash script around the list of users and 'samba-tool group
removemembers $samaccountname'


More information about the samba mailing list