Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Is a given user member of a specific group. This function only supports direct membership

 


Syntax

Function UsrMgr_IsUserMemberOfLocalGroup(sGroupName, sUsername) As Boolean

 


Parameters

sGroupName (String)

...

Username. Accepted format: LOCATION\USERNAME

 


Return value

Result The result will be stored in gbValue

 


Example

Code Block
languagevb
themeEclipse
languagevb
titleVBScript
If bStatus Then bStatus = UsrMgr_IsUserMemberOfLocalGroup("Administrators", "CapaInstaller\Username")
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue,bStatus,True)

Scripting Guidelines

 


Related functions

UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup