System Center

Updated: August 10, 2011

Applies To: Operations Manager 2007 R2, System Center Operations Manager 2007

Represents as secure reference type or a RunAs profile.

<SecureReference ID="Company.Product.SecureReferenceID" Comment=”Comment” Accessibility="Public/Internal" Context="TargetClassType"/>

The following sections describe attributes, child elements, and the parent element of the SecureReference element.



Attribute Description


Required attribute. Represents the identity of the element. To learn how to identify your element in a management pack, see Element Identity and Namespace Conventions.


Optional attribute. Represents commentary by the management pack author.


Required attribute. Defines the visibility of the secure reference type.


Required attribute. Represents the ID of the class type against which the secure reference is targeted.

Accessibility Attribute




Indicates that this secure reference type is visible to external management packs for targeting or inheritance. In most cases, the Accessibility attribute should be set to Public so that the secure reference type can be reused elsewhere.


Indicates that external management packs cannot reference this secure reference type.

Child Elements


Parent Elements




Contains secure reference type definitions or RunAs profiles in a management pack.

Typically, workflow modules run using the default agent action account. However, to accommodate the case where the default agent action account does have the correct credentials to run a module in the workflow, the management pack author can define a SecureReference element within the management pack. It is up to the user to define the accounts to associate with the secure reference after the management pack is imported. If the user does not define the accounts to associate with the secure reference, the workflow modules will run, but they will run under the default agent action account, which might not be desirable.

A display string for each secure reference type should be defined in the display string section of the management pack for at least one language. For more information, see DisplayStrings.

The following sample shows how to define a SecureReference element in a management pack. Because the Context attribute is defined as the base class type for all class types, the secure reference can be applied to any workflow module in the system.

<SecureReference ID="Mom.Sample.SampleOperatorAccount" Accessibility="Public" Context="System!System.Entity"/>

The following sample shows how the preceding SecureReference element can be referenced in a workflow module. The ID of the SecureReference element is assigned to a WriteAction module’s RunAs attribute.

<WriteAction ID="Probe" RunAs="Mom.Sample.SampleOperatorAccount" TypeID="System!System.CommandExecuter">