2.2.4.2.2.31 ImpersonationInfo

The ImpersonationInfo complex type represents impersonation settings for an object or operation.

   <xsd:complexType name="ImpersonationInfo">
     <xsd:all>
       <xsd:element name="ImpersonationMode" >
         <xsd:simpleType>
           <xsd:restriction base="xsd:string" >
             <xsd:enumeration value="Default" />
             <xsd:enumeration value="ImpersonateServiceAccount" />
             <xsd:enumeration value="ImpersonateAnonymous" />
             <xsd:enumeration value="ImpersonateCurrentUser" />
             <xsd:enumeration value="ImpersonateAccount" />
           </xsd:restriction>
         </xsd:simpleType>
       </xsd:element>
       <xsd:element name="Account" type="xsd:string" minOccurs="0"/>
       <xsd:element name="Password" type="xsd:string" minOccurs="0"/>
       <xsd:element name="ImpersonationInfoSecurity" minOccurs="0">
         <xsd:simpleType>
           <xsd:restriction base="xsd:string" >
             <xsd:enumeration value="PasswordRemoved" />
             <xsd:enumeration value="Unchanged" />
           </xsd:restriction>
         </xsd:simpleType>
       </xsd:element>
     </xsd:all>
   </xsd:complexType>

Element

Read-Only

Default value

Description

ImpersonationMode

[Required]

A string that specifies the credentials to use for impersonation. The enumeration values are as follows:

  • Default - The server uses the impersonation method that it deems to be appropriate for the context in which impersonation is used.

  • ImpersonateServiceAccount - Use the user account that the server is running as.

  • ImpersonateAnonymous - Use the anonymous user account.

  • ImpersonateCurrentUser - Use the user account that the client is connecting as.

  • ImpersonateAccount - Use the specified user account.<116>

Account

Empty

The user account to impersonate when ImpersonationMode=ImpersonateAccount.

Password

Empty

The password of the user account when ImpersonationMode=ImpersonateAccount.

ImpersonationInfoSecurity

Read-only

Specifies whether the password was removed.