Impersonation - getObjectIdByName
Impersonation - getObjectIdByName
Description :
Obtains the unique object identifier of the automation principal, given its name. The command will fail if no automation principal exists with the provided name.
Return type : com.bladelogic.om.infra.model.base.definition.ObjectId
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
name | String | Name of the automation principal |
Example
The following example obtains the unique object identifier for the "CorpDomainAdmin" automation principal.
Script
Impersonation getObjectIdByName CorpDomainAdmin
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*