ServiceSearch.searchByName()
The method searches for a service by name.
- 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
ServiceSearch.searchByName(name, profileName, scope)
- Arguments
-
- name
- The service name, provided as a string, to use as the basis for the search.
- profileName
- Optional profile name, provided as a string. The profile name of the service to use as the basis for the search.
- scope
- Optional search scope, provided as an int. Use 1 for One Level Scope and 2 for Scope. One Level Scope is the default scope. When you use this method in workflow JavaScripts, set the scope parameter to SubTree because the logical search context is limited to the tenant above the default organization. In this context, setting the scope to One Level Scope returns empty results during a search because there are no services at the tenant level.
- Returns
- An array of
DirectoryObjects
representing the results of the search.
- Description
- This method searches for a service by a name.
- Usage
-
searchResult1 = ServiceSearch.searchByName("US Service", 2); // use default one level scope searchResult2 = ServiceSearch.searchByName("US Service");