Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FifteenWindows/OS Functions (continued)

IsUserInGroup Function

Overview

The IsUserInGroup function tests a user as being part of a specific group.

Syntax/Parameters

Syntax

boolean = IsUserInGroup ( string group, [string user], [string password] );

Parameters

group

A string specifying a system or administrator defined group name.

user

An optional string specifying the user name. If omitted, the current user is used.

password

An optional string specifying the password for the user. See Remarks below for notes on security.

Return Value

Returns a boolean value as TRUE or FALSE depending on whether the user is a member of the specified group. If an error occurs, the function returns FALSE, so the IsError must be used to determine if the function succeeded. Use the GetLastError function to retrieve error information.

Remarks

Programs should not store user passwords without encryption, if they are stored at all. It is not necessary have the credentials for the current users to test group membership;

Proper security precautions should be employed when storing and using passwords. This function abides by the Secure Memory Model.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic