UsrMgr\_IsUserMemberOfLocalGroup
Description
Section titled “Description”Is a given user member of a specific group. This function only supports direct membership
Syntax
Section titled “Syntax”Function UsrMgr_IsUserMemberOfLocalGroup(sGroupName, sUsername) As Boolean
Parameters
Section titled “Parameters”sGroupName (String)
Group name
sUsername (String)
Username. Accepted format: LOCATION\USERNAME
Return value
Section titled “Return value”The result will be stored in gbValue
Example
Section titled “Example”VBScript
If bStatus Then bStatus = UsrMgr_IsUserMemberOfLocalGroup("Administrators", "CapaInstaller\Username")If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue,bStatus,True)Related functions
Section titled “Related functions”UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup