Google Workspace Subscription
While creating or editing mail enabled objects through a Synchronize job, Directory Manager provides you the facility to sync or deprovision subscriptions from Google Workspace messaging provider.
Sync Google Workspace subscriptions
While creating or editing a Synchronize job (mailbox-enabled user) you can sync subscriptions from G Suite messaging provider.
On the Object, Fields and Mapping page:
Step 1 – Click Add Messaging Provider and select Google Workspace from the drop down list.
Step 2 – Enter service account name in the Service Account box.
Step 3 – Enter admin username in the Admin Username box.
Step 4 – Specify the location of .P12 key file in the P12 Certificate Path box.
Step 5 – Click Sync Again
The name of mail server populates in the Server Name list.
Step 6 – Click Save.
Step 7 – On the Select Fields page, the following Google Workspace specific fields are selected by default in the Selected Fields box:
- First Name
- familyName
- LicenseAssignemnt
- Password
- AppName
- Sam Account Name
- Common Name(CN)
- Display Name
Step 8 – Click Next.
You have to transform all the above fields to work them properly with Google Workspace messaging provide.
Step 9 – On the Field Map(s) page, click the Transform button against:
-
the familyName field.
- On the Transform dialog box, select Join - combine two source fields together from the Set the destination field to box.
- Select an attribute from the First field list to form a value for the family name field.
- Provide a separator of your choice in the Separator box to separate value of First field and Second field. It is an optional field.
- Select an attribute from the Second field list to form a value for the family name field.
- Click Transform
-
the Email 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 Google Workspace domain name.
By default, it displays: DTM.Result = ""
Modify it with the attributes you want to form email address of the mailbox-enabled user. For example:
DTM.Result = DTM.Source("First") & "_go_" & DTM.Source("Last")&"@theasp.net"
-
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 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 AppName 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 G Suite.
- Click Transform.
Step 10 – Continue with the rest of the pages of the wizard to complete the job.
Deprovision existing Google Workspace subscriptions
To delete a subscription in an existing job, double click the required job. Edit job wizard opens.
Step 1 – Click Next until you reach on the Filed Map(s) page of the Edit job wizard.
Step 2 – Click the Transform button against 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 OK.
Step 3 – Click Finish or click Next if you want to modify a setting on any rest of the pages of the Edit Job wizard.