Assign Autotask Configuration Contact Based on Last Logged In User Crate
What does the Assign Autotask Configuration Contact Based on Last Logged In User Crate do?
This Crate is designed for environments where Datto RMM and Autotask are already connected via Rewst. It automatically assigns a Contact to a Configuration in Datto Autotask PSA based on the last logged-in user data populated by an RMM tool. It simplifies contact association for machines by leveraging username matching against known contact email prefixes, reducing manual labor and increasing accuracy.
Note that the parsing logic of this Crate is not configurable. The Crate assumes a standard domain\username or plain username format, and matches only against the prefix of contact email addresses. It does not assign contacts when there are zero matching contacts or the configuration is missing a mapped company or last user field. It doesn't create new contacts or users — only matches existing contacts — and doesn't log skipped or errored configurations.
How the Crate works
Retrieves the last logged-in username from a configuration item - typically provided by an integrated RMM tool
Extracts the account name from that value, e.g., the portion after the
\
or just the raw valueQueries Autotask for all active contacts associated with the company linked to the configuration
Compares the account name against the local part -before
@-
of each contact’s email addressIf a 1:1 match is found, the Crate assigns that contact to the configuration using the Autotask API
If no match is found, the Crate takes no action, avoiding incorrect assignments
Crate prerequisites
Prior to unpacking and running this Crate, you'll need to have successfully integrated your Datto Autotask PSA.
Unpack the Assign Autotask Configuration Contact Based on Last Logged In User Crate
Navigate to Crates > Crate Marketplace in the left side menu of the Rewst platform.
Search for
Assign Autotask Configuration Contact Based on Last Logged In User
.Click on the Crate tile to open its details page.
Click Unpack Crate.
Click Continue.
Note that you have the option under the Always Pass accordion menu to activate the Crate for all future organizations in addition to the current one. Current org-only is the default. You may also set activation to certain tags, trigger criteria, or for integration overrides.
Click Unpack.
Test the Crate
Ensure that the sample you're testing is a 1:1 match before running the test to see if the contact is properly assigned as expected. Then, check the negative result of the Crate with a sample you're certain is not a match, to see if an example that does not match does not get assigned.
Last updated
Was this helpful?