Click or drag to resize

UserGroupManagerFindUserObject Method

Return all user objects (including local users, domain users and optionally domain groups), optionally matching given filter. When both name and email are null or empty strings, all user objects in the system are returned, including disabled users and optionally domain groups. This method is similar to GetUserObjects, but allows excluding domain groups from the results. The returned information includes the user GUID, names, type, enabled/disabled status, domain, email and work phone. In some situations it may be more efficient to call this function only once to get all users, cache the result and perform the search manually.

Namespace:  FileHold.UserRoleManager
Assembly:  FileHold.UserRoleManager (in FileHold.UserRoleManager.dll) Version: 17.0.0.0
Syntax
C#
public List<ADAMObject> FindUserObject(
	string name,
	string email,
	bool withDomainGroups
)

Parameters

name
Type: SystemString
If not null or empty, the full name, first name or last name must exactly match the given string.
email
Type: SystemString
If not null or empty, the email address of the user must exactly match the given string.
withDomainGroups
Type: SystemBoolean
If true, domain groups will be returned

Return Value

Type: ListADAMObject
A list of zero or more user objects matching the given filter
See Also