AccountSearch.searchByURI()
The method finds an account by URI in an organizational container.
- Availability
-
IBM® Tivoli® Identity Manager 4.x
IBM Tivoli Identity Manager 5.x
IBM Security Identity Manager 6.x
IBM Security Identity Manager 7.0.
- Synopsis
-
AccountSearch.searchByURI(containerDN, uri)
- Arguments
-
- Container DN
- String representing the distinguished name of the organizational container.
- uri
- String representing the URI of the account.
- Returns
- An Account object.
- Description
- Given the distinguished name of an organizational container and the account URI, this method finds the account. If the account is not found, this function returns null. If more than one account is found, this function throws a scripting exception.
- Usage
-
var account = (new AccountSearch()).searchByURI(container.dn, uri); if (account != null) { Enrole.log("script", "Found " + account.getProperty("eruid") );}