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: IUnknown

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.

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

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

# Bind to the user object
$userDN = "CN=John Smith,CN=Users,DC=domain,DC=com"
$user = $service.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)
C#
using Softerra.Adaxes.Interop.Adsi;
using Softerra.Adaxes.Adsi;
class Program
{
    static void Main(string[] args)
    {
        // Connect to the Adaxes service
        AdmNamespace ns = new AdmNamespace();
        IAdmService service = ns.GetServiceDirectly("localhost");

        // Bind to the user object
        const string userPath = "Adaxes://CN=John Smith,CN=Users,DC=domain,DC=com";
        IADs user = (IADs)service.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.

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

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

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

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

        // Bind to the user object
        const string userPath = "Adaxes://CN=John Smith,CN=Users,DC=domain,DC=com";
        IADs user = (IADs)service.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:
  • bool
  • Access:
  • Read-only

Requirements

Minimum required version: 2013.1

See also