Office 365 Subscription
While creating or editing mail enabled objects through a Synchronize job, GroupID provides you the facility to sync or deprovision subscriptions from Office 365 messaging provider.
What do you want to do?
- Sync Office 365 subscription in a Synchronize job
- Deprovision Office 365 subscription in a Synchronize job
Sync Office 365 subscription in a Synchronize job
While creating or editing a Synchronize job (mailbox-enabled user) you can sync subscriptions from Office 365 messaging provider.
On the Object, Fields and Mapping page:
-
Click Add Messaging Provider and select Office 365 from the drop down list.
-
Enter domain name in which the mail server resides in the Domain Name box.
-
Type the user name of an authorized user account on the mail server in the User name box.
-
Type the application id in Application ID box.
-
Enter password of the user mentioned in the User name field in the Password box.
-
Enter Tenant ID in the box. Tenant ID is a globally unique identifier (GUID) that is different than your organization name or domain.
-
Enter client secret in the Client Secret box.
-
Click Sync Again.
The name of mail server(s) in the given environment populates in the Server Name list, select your required mail server from the list.
-
Click Save.
-
On the Selected Fields section, the following Office 365 specific fields are selected by default in the Selected Fields box:
- Sam Account Name
- Display Name
- First Name
- Common Name (CN)
- Last Name
- Password
- LicenseAssignment
- User logon name
- UsageLocation
- Alias
-
Select Field Mapping. You have to transform the following fields to sync subscriptions of Office 365:
- LicenseAssignment
- User logon name
- UsageLocation
- Password
-
On the Field Map(s) section, click the Transform button against the:
-
the LicenseAssignment field.
- On the Transform dialog box, select Static - assign a static value from the Set the destination field to box.
- Select check box(es) of the required subscription(s) from the list of subscriptions displayed.
- Click Transform.
-
the User Logon Name field.
-
On the Transform dialog box, select Script -write a Visual Baisc.Net script to assign a value programmatically from the Set the destination field to box.
-
Click Edit Script to edit the script to append the user logon name with Office 365 domain name.
By default, it displays: DTM.Result = DTM.Source("userPrincipalName") script.
Modify it with the attributes you want for the user logon part and add domain name.
For Example:
DTM.Result = DTM.Source("First")&DTM.Source("Last")&"@directorymanager.onmicrosoft.com"
-
To test the script, click Test Script from Field Options dropdown.
-
On the Script Tester window click Run Script button to populate the test results in the Test Result box. Close the Script Editor to return to the Transform dialog box.
-
Click Transform.
-
-
the UsageLocation field.
- On the Transform dialog box, select Static - assign a static value from the Set the destination field to box.
- In the Static text box, enter 2-letter country name abbreviation such as US for United States.
- Click Transform.
-
the Password field.
- On the Transform dialog box, select Static - assign a static value from the Set the destination field to box.
- Click Auto-Generate Unique, Complex Passwords.
- On the Password Complexity Options dialog box, enter 10 in the Password Length box.
- Clear the Special symbols check box.
- Click Transform.
-
Continue with the rest of the pages of the wizard to complete the job.
-
Deprovision Office 365 subscription in a Synchronize job
To delete a subscription in an existing job, double click the required job. Edit job wizard opens.
-
Click Next until you reach on the Filed Map(s) page of the Edit job wizard.
-
Click the Transform button against the: the LicenseAssignment field.
- On the Transform dialog box, select Static - assign a static value from the Set the destination field to box.
- Select check box(es) of the required subscription(s) you want to remove from the list of subscriptions displayed.
- Select the Deprovisioning check box.
- Click Transform.
-
Click Finish or click Next if you want to modify a setting on any rest of the pages of the Edit Job wizard.
See Also