[Gambas-user] ITAWT check if the User is a member of a group

Brian G brian at westwoodsvcs.com
Mon Nov 9 14:38:47 CET 2020


Hi Bruce
   I attach a project which does what your looking for. It returns the list of groups for a user.

   Hope this is helpful.


  It uses the clib calls getgrouplist() and getgrgid()


Thank You
Brian G

----- Original Message -----
From: "Bruce" <adamnt42 at gmail.com>
To: "Gambas mailing list" <user at lists.gambas-basic.org>
Sent: Sunday, November 8, 2020 7:57:45 PM
Subject: [Gambas-user] ITAWT check if the User is a member of a group

User'Group returns the primary group id for the User. I need to find out 
if the User is also a member of another group.
Is there a way in Gambas or does anyone have a good idea?

tia
bruce

----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GetUserGroups-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 12081 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201109/7a19b7cf/attachment.bin>


More information about the User mailing list