Mono.Unix.Native.Syscall.getgrouplist Method
Determine the group access list for a user.

Syntax

public static Group[] getgrouplist (Passwd user)

Parameters

user
Mono.Unix.Native.Passwd instance containing the user to get the groups for.

Returns

Mono.Unix.Native.Group array containing all of the Unix groups that user belongs to.

Exceptions

TypeReason
ArgumentNullException user null

Remarks

Determines the group access list for user by using the getgrouplist(3) system call.

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 4.0.0.0