Microsoft Identity Integration Server 2003 Developer Reference

MIIS_CSObject

The MIIS_CSObject class represents an instance of each connector space object in the server. To use this class, you must be logged on as a member of the MIISPasswordSet security group or the MIISBrowse security group.

The following syntax is simplified from MOF code and includes all inherited properties.

class MIIS_CSObject
{
  String Account;
  String Dn;
  String Domain;
  String EscrowedExportHologram;
  String FullyQualifiedDomainName;
  String Guid;
  String Hologram;
  String MaGuid;
  String MaName;
  String MvGuid;
  String ObjectType;
  String PartitionDisplayName;
  String PartitionGuid;
  String PartitionName;
  String PasswordChangeHistory;
  String PendingImportHologram;
  String UnappliedExportHologram;
  String UnconfirmedExportHologram;
  String UserPrincipalName;
};

Methods

The MIIS_CSObject class defines the following methods.

Method Description
ChangePassword Changes the password on a connector space object to a new password.
SetPassword Sets the password on a connector space object to a new password.

Properties

The MIIS_CSObject class has the following properties.

Account
Data type: String
Access type: Read-only

Gets the security account manager (SAM) account name for the user.

Dn
Data type: String
Access type: Read-only

Gets the distinguished name of the connector space object.

Domain
Data type: String
Access type: Read-only

Gets the domain name of the connector space object.

EscrowedExportHologram
Data type: String
Access type: Read-only

Gets an XML representation of what the connector space object properties will be if all the exports in progress are applied to the object.

FullyQualifiedDomainName
Data type: String

Gets the domain name of the connector space object in domain name system (DNS) format.

Guid
Data type: String
Access type: Read-only
Qualifiers: Key

Gets the GUID that is used to identify the connector space object in the SQL Server 2000 database.

Hologram
Data type: String
Access type: Read-only

Gets an XML representation of the connector space object that has been synchronized to a metaverse object.

MaGuid
Data type: String
Access type: Read-only

Gets the GUID of the management agent for the connector space object.

MaName
Data type: String
Access type: Read-only

Gets the name of the management agent for the connector space object.

MvGuid
Data type: String
Access type: Read-only

Gets the GUID of the metaverse object that is joined to the connector space object.

ObjectType
Data type: String
Access type: Read-only

Gets the name of the primary object type of the connector space object.

PartitionDisplayName
Data type: String
Access type: Read-only

Gets an alternate display name of the management agent partition with the connector space object. This alternate display name is used by password management applications.

PartitionGuid
Data type: String
Access type: Read-only

Gets the GUID of the management agent partition with the connector space object.

PartitionName
Data type: String
Access type: Read-only

Gets the display name of the management agent partition with the connector space object.

PasswordChangeHistory
Data type: String
Access type: Read-only

Gets the log in an XML format of the calls to the MIIS_CSObject.ChangePassword and MIIS_CSObject.SetPassword methods.

PendingImportHologram
Data type: String
Access type: Read-only

Gets an XML representation of the connector space object in the connected directory that has been imported into the server from a full or delta import run profile.

UnappliedExportHologram
Data type: String
Access type: Read-only

Gets an XML representation of the properties of a connector space object if all the exports from the metaverse are successfully applied to the object.

UnconfirmedExportHologram
Data type: String
Access type: Read-only

Gets an XML representation of the latest view of an object in the connected directory.

UserPrincipalName
Data type: String
Access type: Read-only

Gets the UserPrincipalName property of the connector space object. This property is populated only through the Active Directory and global address list (GAL) synchronization management agent.

Remarks

The class supports the following, restricted set of queries:

Starting with Microsoft Identity Integration Server 2003 Service Pack 1, this class also supports searching for a connector space object with a specified distinguished name and management agent GUID. For directory-based management agents, you can search by distinguished name. For management agent types that do not have a distinguished name (for example, a database or non-hierarchical file-based management agent), you can search by anchor attribute because, in the MIIS, the anchor attribute is treated as a distinguished name.

Since WMI contains some special characters, they have to be escaped before they are passed into the function. The special characters for WMI include quotation marks ("), commas (,), backslashes (\), and apostrophes ('). Commas, backslashes, and apostrophes have to be preceded by a backslash . Quotation marks have to preceded by another set of quotation marks. For example, to search for the following objects:

The following WMI code has to be written:

The class supports the OR operator in these searches. If the query does not contain a WHERE clause, the search fails.

Example Code [VBScript]

The following example Visual Basic Scripting Edition (VBScript) example shows how to get a connector space object with a specified GUID.

Option Explicit

Dim Service
Dim CsObject
Set Service = GetObject("winmgmts:root\MicrosoftIdentityIntegrationServer")
Set CsObject = Service.Get("MIIS_CSObject.Guid='{707E0C18-5712-42A8-A8E7-19CBE8565388}'")
The following VBScript example shows how to find all connector space objects that are joined to a metaverse object with a specified GUID.
Option Explicit

Dim Service
Dim CsObjects
Dim CsObject
Dim hr_mvguid

Set Service = GetObject("winmgmts:root\MicrosoftIdentityIntegrationServer")
Set CsObjects = Service.ExecQuery _
   ("Select * from MIIS_CSObject where domain='Fabrikam' and account='HRAccount'")
   
For Each CSObject in CSObjects
   If (CSObject.MaName = "Fabrikam HR MA") Then
	 hr_mvguid = CSObject.mvguid
   End if
Next

Set CsObjects = Service.ExecQuery _
	("Select * from MIIS_CSObject where mvguid = hr_mvguid")
The following VBScript example shows how to retrieve all connector space objects with a specified domain and SAM account name.
Option Explicit

Dim Service
Dim CsObjects
Set Service = GetObject("winmgmts:root\MicrosoftIdentityIntegrationServer")
Set CsObjects = Service.ExecQuery _
   ("Select * from MIIS_CSObject where domain='Fabrikam' and account='HRAccount'")
The following VBScript example shows how to retrieve all connector space objects with a specified domain and user principal name.
Option Explicit

Dim Service
Dim CsObjects
Set Service = GetObject("winmgmts:root\MicrosoftIdentityIntegrationServer")
Set CsObjects = Service.ExecQuery _
   ("Select * from MIIS_CSObject where domain='Fabrikam' and userPrincipalName='Jeff'")
The following VBScript example shows how to retrieve all connector space objects with a specified distinguished name and management agent GUID. This search query can only be run on Microsoft Identity Integration Server 2003 Service Pack 1.
Dim Service
Dim CsObjects
Set Service = GetObject("winmgmts:root\MicrosoftIdentityIntegrationServer")
Set CsObjects = Service.ExecQuery _
   ("Select * from MIIS_CSObject where DN='CN=jeffsmith,DC=Fabrikam,DC=com' and MaGuid='{AD76535A-2523-4EB2-9C2B-4C0E02E9CF95}'")

Requirements

Server: Requires Microsoft Identity Integration Server 2003.
Header: Declared in mmswmi.mof.