Text File | Update Microsoft 365 Contacts
Rule description
This rule queries the specified CSV file containing a list of Microsoft 365 contacts and modifies their properties according to the values in the file.
NOTE: CSV-file should be in UTF-8 format in case of using letters with an accent: á, ä, é, í, ö, ü and etc.
When to use this rule
Use this rule when you need to perform bulk Microsoft 365 contacts update from HR/ERP/SIS system into Microsoft 365.
This rule requires a source text file in the comma-separated variable format (CSV). You can use the template CSV file provided with the rule, or create a file in Microsoft Excel and export it as CSV.
To use a template CSV file:
In the Query section, click the [...] button next to the Select Data Source setting.
Open the Templates folder.
Select the Create Office 365 Contacts - Template CSV file.
Click Open.
The Query source text file requires the following CSV (comma-separated value) format:
Email,FirstName,LastName
joe@domain.com,Joe,Smith
kelly@domain.com,Kelly,JonesRule settings
Query section
| Setting name | Description |
|---|---|
Select Data Source |
Specify the text file to be imported. The […] (three dots) button allows the user to browse for the file and the Create/Edit button allows the creation or editing of the existing file in the built-in Data Source editor. |
Data source anchor attribute |
Select a column in the data source that contains the attribute value for identifying and mapping a computer. |
More Options | |
Filter CSV Data |
This setting specifies the filter that can remove data rows from the imported text file that satisfies the specific condition. |
Properties to display |
Each object property defined in this setting matches the column that will be displayed in the Web Portal for this web query. To display additional columns, add the required properties to the Properties to display list. |
Empty field in Data Source |
If the record in the CSV file column is empty, you can skip updating the attribute or clear its value. |
Initialization Script | |
Script |
Usually, rules use query criteria to limit the query search scope. It improves the performance of the executed rule. Due to the PowerShell limitations, it is not possible to use calculated expressions in query criteria. That is the point where the initialization script can help. You can initialize a global variable in this setting and then use it in query criteria. IMPORTANT: To use a variable, declared in the initialization script, in the query scope, it must be global: Example: Update AD users, created in the last ten days.
|
Action section
| Setting name | Description |
|---|---|
| Account | |
|
Email address
|
Specify a column with a contact email address or skip this setting. |
First Name (FirstName) |
If the Data Source contains a field named FirstName, ignore this setting. Otherwise, use the Selector button to choose a field from the Data Source. Also, you can skip this setting. |
Last Name (LastName) |
If the Data Source contains a field named LastName, ignore this setting. Otherwise, use the Selector button to choose a field from the Data Source. |
|
Display Name
|
Specify the DislpayName format or skip this setting. |
Initials |
Specify a column with contact initials or skip this setting. |
Name |
The internal name of a contact must be unique. The name is not shown in the Microsoft 365 UI. Select one of the following options:
|
Name conflict resolution |
This option determines how the system should react when the name of a contact being created already exists:
|
Alias |
The following values are possible:
NOTE: The default Microsoft behavior is to use the name with spaces and other unsupported symbols removed. |
Hide from GAL |
Specify if the created contact should be hidden from GAL or skip this setting. |
Mail tip |
Specify a column with a contact mail tip or skip this setting. |
Organization | |
|
Specify a static text value or use the Selector button to choose a field from the Data Source or skip these settings. |
Manager |
Specify contact manager. Use any supported contact/user value for the manager (email, username, ID, etc.) or skip these setting. |
Contact Info | |
|
Specify a static text value or use the Selector button to choose a column from the Data Source or skip these settings. |
Custom Attributes | |
Custom attribute1 - Custom Attribute 15 |
If you use Exchange Online custom attributes to store additional information for contact accounts, you could select these attributes and map them to Custom Attributes or skip these settings. To set labels or default values for these attributes, please use Attribute policies . NOTE: Only Exchange Online attributes can be assigned to custom attributes. |
Output section
This section defines the output format of this rule.
To get more information about this section, please see the Rule Output section article.
Enforce/Schedule section
This section defines the schedule for how often to run the rule.
To get more information about this section, please see the Rule Enforce/Schedule section article.
Comments
0 comments
Please sign in to leave a comment.