Click or drag to resize
PMGroupOULookupOU Method
Looks up and returns a PMGroupOU object for the organizational unit and domain specified.

Namespace: PM90SettingsAPI.Membership
Assembly: PM90SettingsAPI (in PM90SettingsAPI.dll) Version: 9.0.23.534 (9.0.23.534)
Syntax
C#
public static PMGroupOU LookupOU(
	string name,
	string domainName
)

Parameters

name
Type: SystemString
The full name and path of the OU to be found. See Remarks
domainName
Type: SystemString
The domain name of group, null or empty assumes workgroup / local user

Return Value

Type: PMGroupOU
A new PMGroupOU object, or null if not found
Exceptions
ExceptionCondition
ArgumentExceptionInvalid or null OU or Domain
PMObjectNoFoundExceptionGroup does not exist, or could not be found
PMServiceUnreachableExceptionThe PMTracking service isn't running, or is unreachable
PMDatabaseConnectionNotFoundExceptionNo database connection available on this system
PMDatabaseExceptionRepresents an database connection or syntax error that has occurred when processing an API request
PMExceptionUnexcpected exception has occurred, check inner exception
Remarks

This API call requires the Print Manager Plus tracking service to be running.

Fully qualified domain name is recommended, however NetBIOS domain names may be converted by the api if possible.

The full Organizational Unit path is required to lookup and add nested OUs. i.e. to add the 'Full Time' OU that is stored inside the 'Employees' OU, the name parameter would be 'Employees/Full Time'.

See Also