Sync users by creating new ones or updating existing users based on their username or id_number. After all user data is processed, course assignment rules are applied.

Basic Parameters

ParameterDescription
UsersArray of user objects to update. If a user doesn’t exist, a new one will be created.

Important Notes:

* username, first_name, last_name and email are required for each user, id_number is required when Find By is set to ID Number.

* The maximum allowed length for each required field is 100 characters.

* The maximum number of users is 10.

For example:
[
{
“username”: “sally@company.tld”,
“first_name”: “Sally”,
“last_name”: “Student”,
“email”: “sally@company.tld”,
“title”: “Sales Manager”,
“location”: “South Office”,
“id_number”: “2-105”,
“state”: “CA”,
“country”: “US”,
“phone”: “+1 555-555-9870”,
“department”: “Sales”,
“suspended”: false
}
]

Advanced Parameters

ParameterDescription
Execute RulesSelect whether course assignment rules should be executed after creating and updating user accounts.
Find BySpecifies which field should be used to identify existing user accounts.
Force Password ChangeSelect to require new users to change their password the first time they log into the LMS application.
Track ChangesSelect to only update user records if there are detected changes.

Example Output

{
	"data": {
		"summary": {
			"created": 0,
			"updated": 1,
			"skipped": 0,
			"suspended": 0,
			"errors": 0
		},
		"details": {
			"users": [
				{
					"key": "2-105",
					"success": true,
					"operation": "updated",
					"user_id": 379,
					"username": "sally@company.tld",
					"department_id": 96,
					"message": ""
				}
			],
			"rule_logs": [
				{
					"execution_time": "2024-09-14T00:18:03.000000Z",
					"user_id": 379,
					"company_id": 5,
					"mock": false,
					"user_state": {
						"title": "Sales Manager",
						"location": "South Office",
						"hire_date": "",
						"department_id": 96,
						"role": "Student",
						"country": "US",
						"state": "CA"
					},
					"exec_log_rules": [
						{
							"rule_id": 8,
							"match": true,
							"rule_exec_log_definitions": [
								{
									"rule_definition_id": 305,
									"match": true,
									"definition_summary": "..."
								}
							],
							"log_courses": [
								{
									"course_id": 19,
									"rollout_id": 145,
									"assignable": true,
									"action_result": "Course assigned",
									"course": {
										"id": 19,
										"display_name": "Preventing Discrimination ...",
										"short_name": "PDHE_51_Office_US_eng_std_071723"
									}
								}
							],
							"rule": {
								"id": 8,
								"company_id": 5,
								"enabled": true,
								"rule_name": "Sales Users",
								"sort_order": 1
							}
						}
					]
				}
			]
		}
	}
}

Workflow Library Example

Sync Users with Traliant Lms and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop