PMGroupOULookupOU Method |
Namespace: PM90SettingsAPI.Membership
public static PMGroupOU LookupOU( string name, string domainName )
Exception | Condition |
---|---|
ArgumentException | Invalid or null OU or Domain |
PMObjectNoFoundException | Group does not exist, or could not be found |
PMServiceUnreachableException | The PMTracking service isn't running, or is unreachable |
PMDatabaseConnectionNotFoundException | No database connection available on this system |
PMDatabaseException | Represents an database connection or syntax error that has occurred when processing an API request |
PMException | Unexcpected exception has occurred, check inner exception |
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'.