Skip to content

IAdmLyncOps

The IAdmLyncOps interface is used to enable and disable users for Skype for Business, determine whether a user is enabled for Skype for Business, and get the FQDN of the Registrar pool where the user’s Skype for Business account is homed.

Inheritance: The IAdmLyncOps interface inherits from the IUnknown interface.

Methods

  • Method

  • Description

  • LyncEnable()

  • Enables the user for Skype for Business.

  • LyncDisable()

  • Disables the user for Skype for Business.

  • GetLyncPoolFqdn()

  • Returns the fully qualified domain name (FQDN) of the Registrar pool where the user’s Skype for Business account is homed.

Properties

  • Property

  • Description

  • IsLyncEnabled

  • Gets a value indicating whether the user is enabled for Skype for Business.

Details

LyncEnable()

Enables the user for Skype for Business.

void LyncEnable(String poolFqdn, 
                String sipAddress,
                ADM_LYNCTELEPHONYMODE_ENUM telephonyOptions, 
                String lineUri, 
                String lineServerUri)

Parameters

  • poolFqdn - Specifies the fully qualified domain name (FQDN) of the Registrar pool where the user’s Skype for Business account will be homed.
  • sipAddress - Specifies the user’s SIP URI. When specifying the address, preface it with sip: (e.g. sip:jsmith@example.com).
  • telephonyOptions - Specifies a value indicating how Telephony options must be configured for the Skype for Business user.
  • lineUri - Specifies the phone number assigned to the user. The line Uniform Resource Identifier (URI) must be specified using the E.164 format and the TEL: prefix (e.g. TEL:+12345678912). Any extension number should be added to the end of the line URI (e.g. TEL:+12345678912;ext=12345).
  • lineServerUri - Specifies the URI of the remote call control telephone gateway assigned to the user. The gateway URI must be prefaced by sip: (e.g. sip:mygateway@example.com).

Examples

The following code sample enables the user for Skype for Business.

[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

# Connect to the Adaxes service
$admNS = New-Object("Softerra.Adaxes.Adsi.AdmNamespace")
$admService = $admNS.GetServiceDirectly("localhost")

# Bind to the user object
$userDN = "CN=John Smith,CN=Users,DC=domain,DC=com"
$user = $admService.OpenObject("Adaxes://$userDN", $NULL, $NULL, 0)

# Enable the user for Skype for Business
$user.LyncEnable("lyncserver.domain.com", "sip:jsmith@domain.com", "ADM_LYNCTELEPHONYMODE_PC2PC", $null, $null)
using Softerra.Adaxes.Interop.Adsi;
using Softerra.Adaxes.Adsi;
class Program
{
    static void Main(string[] args)
    {
        // Connect to the Adaxes service
        AdmNamespace adsNS = new AdmNamespace();
        IAdmService admService = adsNS.GetServiceDirectly("localhost");

        // Bind to the user object
        const string userPath = "Adaxes://CN=John Smith,CN=Users,DC=domain,DC=com";
        IADs user = (IADs)admService.OpenObject(userPath, null, null, 0);

        // Enable the user for Skype for Business
        IAdmLyncOps lyncOps = (IAdmLyncOps)user;
        lyncOps.LyncEnable("lyncserver.domain.com", "sip:jsmith@domain.com", ADM_LYNCTELEPHONYMODE_ENUM.ADM_LYNCTELEPHONYMODE_PC2PC, null, null);
    }
}

LyncDisable()

Disables the user for Skype for Business.

void LyncDisable()

Examples

The following code sample disables the user for Skype for Business.

[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

# Connect to the Adaxes service
$admNS = New-Object("Softerra.Adaxes.Adsi.AdmNamespace")
$admService = $admNS.GetServiceDirectly("localhost")

# Bind to the user object
$userDN = "CN=John Smith,CN=Users,DC=domain,DC=com"
$user = $admService.OpenObject("Adaxes://$userDN", $NULL, $NULL, 0)

# Disable the user for Skype for Business
$user.LyncDisable()
using Softerra.Adaxes.Interop.Adsi;
using Softerra.Adaxes.Adsi;
class Program
{
    static void Main(string[] args)
    {
        // Connect to the Adaxes service
        AdmNamespace adsNS = new AdmNamespace();
        IAdmService admService = adsNS.GetServiceDirectly("localhost");

        // Bind to the user object
        const string userPath = "Adaxes://CN=John Smith,CN=Users,DC=domain,DC=com";
        IADs user = (IADs)admService.OpenObject(userPath, null, null, 0);

        // Disable the user for Skype for Business
        IAdmLyncOps lyncOps = (IAdmLyncOps)user;
        lyncOps.LyncDisable();
    }
}

GetLyncPoolFqdn()

Returns the fully qualified domain name (FQDN) of the Registrar pool where the user’s Skype for Business account is homed.

String GetLyncPoolFqdn()

IsLyncEnabled

Gets a value indicating whether the user is enabled for Skype for Business.

  • Type:
  • Boolean
  • Access:
  • Read-only

Requirements

Minimum required version: 2013.1

See also