none
Set Lync default pool for newly created user RRS feed

  • Question

  • I think i'm missing something but i can't see what, maybe someone here can show me the way.

    In our FIM new user creation process, an new user is created by script.

    And somewhere in that script it assigns the user to Lync, but it doenst specify the Lync pool name so it gets dropped in Legacy pool.
    How do I edit the script so that it is assign the correct Lync pool?

    Below is a portion of the script where think at least the Lync pool name should be mentioned.

    ' Lync2010 Provisioning Code
    ' Constuct msRTCSIP-PrimaryUserAddress
    ' Example: ' Example: CN=Lc Services,CN=Microsoft,CN=1:1,CN=Pools,CN=RTC Service,CN=Microsoft,CN=System,DC=efroot,DC=ads
    Dim PrimaryHomeServer As ReferenceValue
    Dim PrimaryHomeServerStrCN As String
    Dim PrimaryHomeServerStrDN As String
    PrimaryHomeServerStrCN = "CN=LC Services"
    PrimaryHomeServerStrDN = "CN=Microsoft,CN=1:1,CN=Pools,CN=RTC Service,CN=Microsoft,CN=System,DC=efroot,DC=ads"
    PrimaryHomeServer = resourceAdMA.EscapeDNComponent(PrimaryHomeServerStrCN).Concat(PrimaryHomeServerStrDN)

    csentry("msRTCSIP-PrimaryHomeServer").ReferenceValue = PrimaryHomeServer
    csentry("msRTCSIP-FederationEnabled").BooleanValue = True
    csentry("msRTCSIP-InternetAccessEnabled").BooleanValue = True
    csentry("msRTCSIP-UserEnabled").BooleanValue = True
    csentry("msRTCSIP-OptionFlags").IntegerValue = 257
    csentry("msRTCSIP-PrimaryUserAddress").StringValue = "sip:" & upn

    ' Do it!

    Thursday, July 4, 2013 11:26 AM

All replies

  • I could be mistaken, but I think with Lync (not OCS) the only supported way to really Lync-enable - is through PowerShell cmdlets - so that would be my recommendation.

    If you do want to go with the provisioning code above, I'd suggest that you create a user and use PowerShell to enable it correctly; then you compare (using ADSIEDIT or similar) to user that was created with the code above and the user that was created with the PowerShell cmdlets and look for difference in attribute values.

    But again - I really think you should look into the supported way.


    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

    Monday, July 8, 2013 7:22 PM