next if grep { $_ eq $groupname } @groups;
push @groups, $groupname;
my %hash = $svc_acct->hash;
- $hash{radius_groups} = \@groups;
+ $hash{usergroup} = \@groups;
my $new = new FS::svc_acct \%hash;
my $error = $new->replace($svc_acct);
die $error if $error;
=head1 DESCRIPTION
- B<user> is a freeside user as added with freeside-adduser.
+B<user> is a freeside user as added with freeside-adduser.
- B<command> is the action to take. Available actions are: I<add>
+B<command> is the action to take. Available actions are: I<add>
- B<groupname> is the group to add (or remove, etc.)
+B<groupname> is the group to add (or remove, etc.)
- B<svcpart> specifies which accounts will be updated.
+B<svcpart> specifies which accounts will be updated.
=head1 EXAMPLES