extend the Active Directory Users class for SCSM

Today I needed some additional fields for the Active Directory User class for an SCSM Service Offering. For example, I need the PrimarySmtpAddress, which exists in the AD as mail, but not in the SCSM class. in this post, I will describe, how I did it:

We will need:

  • System Center Service Manager 2012 SP1
  • System Center Orchestrator 2012 SP 1
  • Service Manager Authoring Tool
  • Strong name key file

Open the Service Manager Authoring Tool and click to the menu File New, to create a new Management Pack. Define a unique name for your management packs file name, in this Example: Josh.Test.Library.xml (Library mean’s that we will extend a library class)

in the Class browser, select All Management Packs and search for the Domain User or Group class. if you expand this class, you will see the mail field, but it wouldn’t be accessibly (for example in your service requests). right click it and select View:


 Now you will see the Domain User and Group class in the Management Pack Explorer. Right click it and select Extend class:


select your new Management Pack and click OK:


now, you will see the new class, give it an unique name. normally I dont’t use special chars, spaces or dots for the new name:


on some versions of the Authoring Tool, it will automatically create a new property, like Property_26. select the row and then click to the delete icon


now you can add new properties. The new Property should have a unique internal name for your complete Service Manage environment ! normaly I use the Management Pack Name as a prefix for the Property internal name.


After creating the property, you can change some property details, like the (display-)Name, Data Type, etc:


Now you can save the Management Pack and build a sealed one. To seal your Management Pack, you will need a strong name key file. How you can create a strong name key file, is described here (thank you Marcel). right click the management pack and select Seal Management Pack:


Choose the output directory and the key-file to use:


Now, you can import the new management pack like every time.

After importing, you will see the new field in the Extension tab of your Active Directory User CI:


In the next step, you should import datas from Active Directory to the newly created Extensions using an Orchestrator Runbook. Your runbook should have this activities:

  • Get User activity from Active Directory
  • Get Object activity from SC 2012 Service Manager
    • select the newly created class
    • filter by UPN equals {User Principal Name from “Get User”}
  • Update Object activity from SC 2012 Service Manager
    • select the newly created class
    • Object Guid = {SC Object Guid from “Get Object”}
    • add a field: PrimarySmtpAddress → {Email from “Get User”}


Of course, you can import every type of datas from other locations then Active Directory

after importing the datas, you should see it and could use it for your service request offerings.