Sync LastLoggedInUser to PSA Config Item Crate
What does the Sync LastLoggedInUser to PSA Config Item Crate do?
Our Sync LastLoggedInUser to PSA Config Item Crate helps you keep track of the last login activities on your devices by enabling you to select a client and automatically sync the LastLoggedIn field for all RMM devices to update assets in your Datto Autotask PSA.
How the Crate works
Uses the form input to choose the client you wish to sync
Automatically updates the LastLoggedIn field for all RMM devices associated with the selected client
Corresponding assets in the PSA are updated with this newly synced data
Workflow breakdown
The workflow starts by executing a noop action that serves as the initial trigger point for the automation process.
Rewst retrieves all active configuration items from Datto Autotask PSA for the specified target organization, then filters the results to include only configuration item type 1 which represents computers and devices. Essential data is extracted including hostname, last logged-in user, current contact ID, and item ID for each device.
The workflow iterates through each configuration item using a custom Check Current Autotask Contact action to identify items that need contact updates, specifically targeting devices that either have no contact assigned or have an incorrect contact assignment. It filters out items that already have the correct contact properly assigned.
Rewst retrieves all active contacts from Datto Autotask PSA that belong to the target company to create a pool of potential contact matches.
The workflow processes the data to match the last logged-in user from each asset to corresponding contacts by comparing the username to the email prefix and checking against user-defined fields in contact records, then creates a mapping of assets to their correct contact IDs based on these matches.
The workflow performs the final step by iterating through each matched configuration item and updating it in Datto Autotask PSA to assign the correct contact ID to each asset based on who last logged into that device.
Crate prerequisites
The Datto Autotask PSA integration must be successfully set up before unpacking this Crate.
Unpack the Sync LastLoggedInUser to PSA Config Item Crate
Navigate to Crates > Crate Marketplace in the left side menu Rewst platform.
Search for
Sync LastLoggedInUser to PSA Config Item.
Click on the Crate tile to begin unpacking.
Click Unpack Crate.
Click Continue.
Ensure that Enabled is toggled on under Configure Triggers. Note that you have the option under the Form Submission accordion menu to activate the Crate for all future organizations in addition to the current one. You may also set activation to certain tags, and set trigger criteria or integration overrides.
Click Unpack.
Use the Crate
Navigate to Automations > Forms in the left side menu of your Rewst platform.
Search for
AT Asset Owner Sync.Click ⋮ > Usages > View Direct URLs.
Click on the link for the organization which contains the user you wish to manage. This will launch the form in a new tab.
Choose the organization you'd like to run the form on from the Client to Synchronize drop-down selector.
Click Submit to run the workflow. The workflow will run and automatically add notes to your PSA with the results of the software operation.
Test the Crate
Navigate to Automations > Workflows in the left side menu of your Rewst platform.
Search for
[Rewst Master v2] Assign Last Logged in User to AT Asset.
Click on the workflow to view it in the Workflow Builder.
Click Test in the top right corner of the builder canvas.
Choose the applicable options from the following drop-down selectors:
Trigger Context Organization - The applicable organization
target_org - A string variable or parameter that holds the textual identifier of the target organization
Click Test.
Allow the workflow to run.
You'll see a green success message at the top of your screen if the execution is successful. You'll see a red failure message if the execution fails. Click View Results for a more detailed breakdown of each.
Verify that the PSA assets are up to date with RMM device data.
Last updated
Was this helpful?

