[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETGRPMEM()
 Checks to see if a user is a member of a group
------------------------------------------------------------------------------
 Syntax

     NNETGRPMEM(<cUser>,<cGroup>,[<cServer>|<nConId>])
        --> lMember

     Netware: 2.2 and 3.11

 Arguments

     <cUser>  Designates the name of the user.

     <cGroup>  Designates the name of the group that is searched for
     <cUser>.

     <cServer>  Designates the name of the file server on which the user
     and group definition is searched.  Your workstation must be attached to
     <cServer>.

     <nConId>  Designates the connection ID of your workstation on
     <cServer>.  If no server has been specified, the function uses the
     default server.

 Returns

     NNETGRPMEM() returns .T. if the user <cUser> is a member of the group
     <cGroup>.  If <cUser> is not a member of <cGroup>, the function returns
     .F..

 Description

     NOVELL NET GROUP MEMBER
     To improve organization and simplify user access to file server
     resources, user groups can be created under Novell Netware.  Each user
     can be a member of one or more groups.  With the function NNETGRPMEM(),
     you can determine if a user is a member of a specific group.  For
     example, the branch in an application can be made dependent on the
     membership of the logged in user to a specific group.

     The file server can be specified either by its name or its connection
     ID.  The connection ID of a server is returned by NNETATTACH() or
     NNETLOGIN().

     This function requires that the requesting user be logged in on the
     related file server.

 Example

     Log the user into another file server if the user is a member of the
     group DEV:

     IF NNETGRPMEM(cUser,"DEV")
     NNETLOGIN(cUser,cPassword,"NANGERDEV")
     ENDIF

See Also: NNETGROUPS() NNETINGRPS()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson