Import SQL Data | Update Office 365 Users
Rule description
This rule queries the specified Microsoft SQL data source and updates Microsoft 365 user accounts according to the Action section settings.
When to use this rule
Use this rule when you need to perform bulk user account update from HR/ERP/SIS system into Microsoft 365.
Rule settings
Query section
| Setting name | Description |
|---|---|
SQL instance |
Specify the name of the SQL Instance as defined in the Utils Extension SQL Server configuration. Using the Default SQL Instance setting will retrieve the current setting from the SQL Connection settings of the Utils extension. NOTE: For more information, review the Connecting to Microsoft SQL Server data source article. |
SQL database name |
Specify database name from selected SQL Instance. |
SQL table |
Specify an SQL Table or View from the selected database. Click the [...] button to display a list of tables from which to choose. |
SQL credentials |
Specify the database from the data source SQL Instance. Click the [...] button to enter SQL Credentials. NOTE: Cayosoft Administrator does not support Windows Authentication for connecting to a Microsoft SQL Server database. The database connection must use SQL Server Authentication, where the credentials (username and password) are created and managed within SQL Server itself. Mixed Mode refers to the SQL Server configuration that allows both SQL Server Authentication and Windows Authentication, but only SQL Server Authentication is supported by Cayosoft Administrator. |
Data source filter |
Select a column in the data source that contains the attribute value for identifying and mapping a computer. |
| Data source anchor attribute | UserPrincipalName must be used as a DataSource Anchor attribute. It must be a unique value. |
| Office 365 anchor attribute | UserPrincipalName must be used as a DataSource Anchor attribute. |
| More options | |
Return these SQL Columns |
Specify columns returned by the data source. |
Where clause |
Define a WHERE statement in the SQL query sent to the data source to limit the rows returned by SQL Server. |
Filter SQL data |
Set the filtering conditions to hide unwanted data based on criteria not supported in the Query criteria setting. Example: filter by the found object Distinguished Name. TIP: For optimal performance, use the Query criteria setting above to filter objects whenever possible. |
| Filter Office 365 users | To hide unwanted data, set the filtering conditions here. |
Properties to display |
Select properties to display for each object found by the query. |
| Empty field in data source |
Define an action to perform when a record in the SQL column is empty:
|
Action section
| Setting name | Description |
|---|---|
| Account | |
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. |
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 |
If the Data Source contains fields named FirstName and LastName, ignore this setting. Otherwise, use the Selector button to select a field from the Data Source or contact Cayosoft for an override format. |
Settings | |
Password |
This setting defines the password for the new account. This value can be static text, a field from the Data Source chosen using the Selection button, or set to Generate Random Password. NOTE: Static passwords or passwords from the Data Source must meet the Active Directory Password Complexity Policy of the target container, or the account will be created in a disabled state. Randomly Generated Passwords will be generated to match both the Active Directory Password Complexity Policy and additional complexity requirements defined in the Cayosoft Administrator Password Complexity Policy. |
| Usage location | Specify the usage location for the updated Microsoft 365 user account or just skip this setting. |
|
Must change password at next logon
|
Specify if a user must change password at next logon. |
Account status |
Specify if an updated user account will be enabled or disabled, or just skip this setting. |
Organization | |
|
Specify a static text value or use the Selector button to choose a field from the Data Source. |
Contact Info | |
|
Specify a static text value or use the Selector button to choose a field from the Data Source. |
Virtual and other attributes | |
Virtual attributes |
Map column names from the data source to the virtual attributes. |
Attribute mapping script |
If you want every provisioned user to have a virtual attribute populated with some string value, use the following line: where If you want every provisioned user to have a virtual attribute populated with the corresponding value from the column in your data source, use the following line: where Example: The same for regular attributes: Example: |
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.