Views:

Applies To:

GroupID 10 and above

Problem Statement:

If you were using on-prem Exchange previously and want to migrate to 0365 now, then the Targetaddress attribute is not populated for the new users whose mailboxes are directly created in Exchange online, while it is populated for users whose mailboxes are migrated from on-prem Exchange.

In case you are using this attribute in any of your Smart Group queries, then the new users will not be included in the membership of the respective Smart Groups.

Example:

Let’s assume you have all your Smart Groups in one OU and they are all querying one object type (for example, Exchange Users) in their queries. To change the object type in all these Smart Group queries to Users, follow the steps below.

Note: Since this change applies to all Smart Groups in the OU, it is recommended to have someone from the Imanami Support team on board while you perform this activity to avoid data loss.

Solution:

  1. On the GroupID server, launch GroupID Management Shell as an administrator and run the following command:
     
    Get-SmartGroup -SearchContainer "Enter DN of OU which contains all Smart groups" | Select Name |Export-CSV "C:/Smartgroup.csv" -NoTypeInformation

    This will export a CSV file named 'Smartgroup.csv' to the root of the C drive on the GroupID server.
  2. Open the CSV file and add a column, ObjectTypes, in it. Set its value to Users for each exported group and save the changes. It should be as:

  3. Now run the following command from GroupID Management Shell:
     
    Import-Csv "C:/Smartgroup.csv" | ForEach-Object {​Set-SmartGroup -Identity $_.Name -Objecttypes $_.ObjectTypes}​

    We are importing the modified CSV file back into GroupID and using it to apply the change to all the Smart Groups present in the CSV.

  4. Go to GroupID Management Console to verify if changes have been made to the Smart Groups and test to update a couple of them.

Backup Procedure:

In case you want to take a backup of the previous object types, you can use the original CSV that you exported in the first step and specify Exchange Users instead of Users in the ObjectTypes column. Other than that, you can take a backup of the SQL database before applying this change and in case of failure, you can restore that backup.

Reference:

GroupID Management Shell User Guide