Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetremgrp()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETREMGRP()
 Removes one or more users from a group
------------------------------------------------------------------------------
 Syntax

     NNETREMGRP(<cGroup>,<cUser>|<aUser>,[<cServer>|
        <nConId>) --> nNumber

     Netware: 2.2 and 3.11

 Arguments

     <cGroup>  Designates the name of the group from which the user is
     removed.

     <cUser>  Designates the name of the user that is removed from
     <cGroup>.

     <aUser>  Designates a one-dimensional array of the type string.
     Each element contains the name of a user to be removed from <cGroup>.

     <cServer>  Designates the name of the file server used.  Your
     workstation must be attached to <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.

 Returns

     NNETREMGRP() returns the number of users successfully removed from
     <cGroup>.  A return value of 0 indicates that no user has been removed.

 Description

     NOVELL NET REMOVE USER FROM GROUP
     NNETREMGRP() allows you to remove one or more users from a group.  To
     remove one user, the user's login name must be passed as the single
     argument <cUser>.   More users can be removed by passing the array,
     <aUser>.  Each element of the array, <aUser>, contains a user name.  As
     soon as a user has been removed from a group, the user loses all the
     rights that have been granted as a member of the group.  With the
     parameters <cServer> or <nConId>, users on any attached file servers can
     be removed.  The connection ID of a server is returned by NNETATTACH()
     or NNETLOGIN().

     Supervisor rights are required on the related file server to remove a
     user from a group.

 Notes

     .  NNETREMGRP() only removes the user from <Group>.  The user is
        not deleted.

     .  NNETCRTUSR() is a high level function based on the low level
        functions of the bindery access.  The CA-Clipper source code can be
        found on the product disks.

 Examples

     .  Remove user MIKE from the TECH group:

        IF NNETREMGRP('TECH','MIKE')>0
        ? 'User removed successfully!'
        ELSE
        ? 'User cannot not be removed!'
        ENDIF

     .  Remove users JIM, STEPHEN and ED from the TOOLS group:

        NNETREMGRP('TOOLS',{'JIM','STEPHEN','ED'})

See Also: NNETADDGRP()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson