Skip to main content

1E 23.7 (SaaS)

Users.FindLocalGroupMember

Method

FindLocalGroupMember

Module

Users

Library

Core

Action

List the local groups of which the specified user is an immediate member.

Parameters

AccountName (string): The user account to search for. On Windows, this should be in the format: domain\user.

Return values

For each local group that has the account as a member:

    • Account (string): Matched account name.

    • GroupName (string): The name of a local group that includes the account.

Example

Show which local groups "megacorp\herbert.west" is a member of:

Users.FindLocalGroupMember(AccountName: "megacorp\\herbert.west");

Platforms

  • Windows

Notes

"Immediate member" means that the user is defined explicitly and directly as a member of that group. If there is a group hierarchy involved (e.g. the user is a member of a domain group which is itself a member of a local group), then neither group will appear in the results.