Chat with us, powered by LiveChat

Blog

Back

List all Lync Online Users with no Dial-In Conferencing configured

15 Apr 2014 by Emma Robinson

A customer recently contacted us to see if they could use our Office 365 Reporting application to list out all Lync Online Users with no Dial-In Conferencing details configured.
Unfortunately our product doesn’t have this ability just yet, but we were interested by the problem and decided to help them out in any way we could.
After a bit of digging around we discovered two methods to get the data out that they required.
The first method was using the Office 365 Web Portal, specifically the Lync Admin Center.

Lync Online Admin Center

Lync Online Admin Center


Now Click Dial-In Users.
Dial-In Users

Dial-In Users


And click the Funnel Icon above the list of users and select the Filter you want to apply.
Filter Dial-In Conferencing

Filter Dial-In Conferencing


Selecting the Dial-In Conferencing On Filter will show all users that have configured their Dial-In Conferencing details. The other filter obviously shows the opposite.
Dial-In Conferencing On

Dial-In Conferencing On


Unfortunately this didn’t quite suit the needs of our customer as they wanted a script that they could schedule regularly.
This was an excellent opportunity for us to leverage the Lync Online PowerShell Module to get this data Programatically.
The attribute that stores the Lync Online Dial-In Conferencing data is the “AcpInfo” attribute returned by the Get-CSOnlineUser cmdlet.
In my account, it looks something like this:

PS C:\Users\Alan> Get-CSOnlineUser alan | Select ACPInfo | fl
AcpInfo : {
08000121234 1234565 uksip.btci.com
bt conferencing uk_emea
http://www.btconferencing.com/globalaccess/?bid=601
}

The PowerShell script below simply connects to a Lync Online Remote PowerShell session and looks for all users that do not have an ACPInfo attribute.

$credential = Get-Credential
$session = New-CsOnlineSession -Credential $credential
Import-PSSession $session
$Users = Get-CsOnlineUser | Where-Object {!$_.AcpInfo} | select DisplayName, UserPrincipalName, AcpInfo
$Users | Export-Csv "LyncUsersNoConference.csv" -NoTypeInformation

This then gets written to a CSV file and away you go!