Users in your Google organization can share free/busy calendar information with users in Exchange or Office 365. This article explains how to configure Exchange or Office 365 to use Cloudiway Coexistence server.

Office 365 configuration

1. Connect to Exchange Online using PowerShell

Here is a sample script that you can use to connect to Exchange online.

———————— connect.ps1 ————————————- ##################################################################### # # Connect Exchange Online # ##################################################################### $admin = $Host.UI.PromptForCredential(“Office 365 Administrator Credentials”,”Enter your Office 365 user name and password.”,”,””) get-pssession | Remove-PSSession $ps = New-PSSession -ConfigurationName microsoft.exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $admin -Authentication basic -AllowRedirection if ($error[0] -ne $null) { Write-Host $error[0] $error.Clear() exit }Import-PSSession $ps —————————————————————————

2. Create an availability configuration:

New-AvailabilityConfig -OrgWideAccount limitedUser@company.com limitedUser@company.com should be a user with limited permissions (ie standard user).
The command should return a similar output: New-AvailabilityConfig -OrgWideAccount limitedUser@cloudiway.comRunspaceId : bc6bc7a0-2f6c-4e5e-943c-78c4e8fafe69 Name : Availability Configuration PerUserAccount : OrgWideAccount : limitedUser_08c59c0483 AdminDisplayName : ExchangeVersion : 0.1 (8.0.535.0) DistinguishedName : CN=Availability Configuration,CN=Configuration,CN=ilinfo.onmicrosoft.com,CN=ConfigurationUnits,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=eurprd06,DC=prod,DC=outlook,DC=com Identity : Availability Configuration Guid : 0556d5e9-c63b-4c7d-b147-8c85a8ef9e35 ObjectCategory : eurprd06.prod.outlook.com/Configuration/Schema/ms-Exch-Availability-Config ObjectClass : {top, container, msExchAvailabilityConfig} WhenChanged : 19/08/2014 17:20:15 WhenCreated : 19/08/2014 17:20:15 WhenChangedUTC : 19/08/2014 15:20:15 WhenCreatedUTC : 19/08/2014 15:20:15 OrganizationId : eurprd06.prod.outlook.com/Microsoft Exchange Hosted Organizations/ilinfo.onmicrosoft.com – eurprd06.prod.outlook.com/Configuration/Services/Microsoft Exchange/ConfigurationUnits/ilinfo.onmicrosoft.com/Configuration OriginatingServer : DB3PR06DC007.eurprd06.prod.outlook.com IsValid : True ObjectState : Unchanged

3. Add-AvailabilityAddressSpace

Next, configure Office 365 to point to Cloudiway coexistence server using the command Add-AvailabilityAddressSpace.

$adminCredsId = “\consumerKey” $adminCredsPassword = “consumerSecret” $securePassword = ConvertTo-SecureString $adminCredsPassword -AsPlainText -Force $adminCreds = New-Object System.Management.Automation.PSCredential($adminCredsId,$securePassword) Add-AvailabilityAddressSpace -AccessMethod OrgWideFB -ForestName domainname.com -Credentials $adminCreds -TargetAutodiscoverEpr ‘https://XXX.cloudiway.com/autodiscover.xml’

This command tells Office 365 and Exchange to forward free busy requests to the domain named domainname.com on a server discovered by autodiscovery using the URL pointed by TargetrAutodiscoverEpr. Please ask Cloudiway the name of the server that will correspond to your environment.

Where to find my ConsumerKey / ConsumerSecret

  • Login to the platform.
  • Click on your username in the upper right.
  • Click on Account Settings.

Note on the username: it must be in the form Domain\Username. You should fill $adminCredsId in the following way: DomainName is blank and username is the consumerkey of your account in the Cloudiway Platform. For Example, $adminCredsId = “\demo_7b245625e7113ea” Consumer Key / ConsumerSecret

4. Google resources Free Busy

All Google resources are in the domain named resource.calendar.google.com. For all customers, resources are under this domain. To be able to query free busy of Google resources, you must do 2 things:

  • Add an Add-AvailabilityAddressSpace for the foreign domain resource.calendar.google.com (See above).
  • Provide a csv file of all your resources. Cloudiway coexistence platform will use this list to determine that these resources should be looked up in your tenant.