Manage Duo Phones Crate
What does the Manage Duo Phones Crate do?
Duo: Manage Phones Crate ensures controlled access and accurate tracking of phone assignments through audit logs and ticket creation. Admins can add, remove, and audit phone assignments. Automate phone number management by streamlining the process of adding, removing, and auditing phone assignments. Reduce your manual efforts, minimize errors, and ensure consistency.
How the Crate works
The Crate creates an audit report in CSV format and logs a corresponding PSA ticket. The audit can be performed on different scopes:
Tenant: Retrieves all users and their assigned phones.
Phone: Lists users assigned to a specified phone number.
User: Displays all phones assigned to the selected user.
Workflow breakdown
The workflow begins with the START task using the noop action, which serves as the entry point and does nothing but initiate the flow.
The is_auditing_user task uses the noop action to check if the workflow is performing a user audit by evaluating if the action is
auditand the audit scope isuser.If auditing a specific user, the workflow proceeds to the duo_audit_user task using the [REWST - TASK] Duo: Audit User action to generate an audit report for the specified user ID and account ID.
If not auditing a specific user, the workflow continues to the duo_list_accounts task using the List Accounts action to retrieve all available Duo accounts from the system.
The filter_account_ids task uses the Set Variable action to process the account IDs, either selecting all accounts if
allis specified in the input, or filtering to only include the specified account IDs from the retrieved accounts list.The select_action task uses the noop action to determine which operation to perform based on the action input parameter, branching to audit, remove, or add operations.
For audit operations, the select_audit_scope task uses the noop action to determine whether to audit accounts or phones based on the audit scope parameter.
If auditing accounts, the duo_audit_account task uses the [REWST - TASK] Duo: Audit Account action to generate a comprehensive audit report for the specified account IDs.
If auditing phones, the duo_audit_phone task uses the [REWST - TASK] Duo: Audit Phone action to audit a specific phone number across the specified account IDs.
For remove operations, the duo_remove_phone task uses the [REWST - TASK] Duo: Remove Phone action with
with itemsiteration to remove the specified phone number from each account ID in the list.For add operations, the is_username_provided task uses the noop action to verify that a username has been provided as input for the phone assignment process.
If a username is provided, the duo_get_user_by_username task uses the Get User by Username action with
with itemsiteration to search for the user across all specified account IDs.The filter_users task uses the Set Variable action to compile and structure the user information retrieved from the previous step, creating a list of users with their user IDs, usernames, and associated account IDs.
The duo_add_and_assign_phone task uses the [REWST - TASK] Duo: Add and Assign Phone action with
with itemsiteration to add and assign the specified phone to each user found in the filtered users list.After completing audit operations, the create_csv_report task uses the Set Variable action to convert the audit report data into CSV format, or displays No Data Found! if no audit data exists.
The psa_create_ticket task uses the [REWST - PROCESS] PSA: Create Ticket action to create a support ticket in the configured PSA system with the title
Duo Audit Reportand appropriate company information.The upload_csv_to_ticket task uses the [REWST - TASK] Upload Attachment To Ticket action to attach the generated CSV audit report to the newly created PSA ticket with the filename "duo_audit_report.csv".
Any failures in the workflow are handled by the FAILED task using the noop action, which serves as a centralized failure handler before proceeding to the end.
The workflow concludes with the END task using the noop action, which publishes the final automation log and marks the successful completion of the workflow.
Crate prerequisites
Before unpacking this Crate, you must have one of the following PSAs integrated with Rewst:
You also must have integrated Duo with Rewst.
Unpack the Manage Duo Phones Crate
Navigate to Crates > Crate Marketplace in the left side menu of the Rewst platform.
Search for
Manage Duo Phones.
Click on the Crate tile to begin unpacking.
Click Unpack Crate.
Click Continue.
Under Configure Triggers, make sure that the trigger is enabled for your desired organizations.
Click Unpack.
Test the Manage Duo Phones Crate
Navigate to Automations > Forms.
Search for the form named [Rewst] Duo: Manage Phones.
Click ⋮ and select Usages.
Locate the workflow named [Rewst - CRATE] Duo: Manage Phones.
Click View Direct URLs.
Click the link that corresponds to your MSP’s organization.
Any of the choices under Action will work for your test, but Audit will be the simplest. Choose this option to expose the next sections of the form.
Choose Tenants under Audit Scope.
Select your relevant organization in the Tenants drop-down selector.
Click Submit.
If successful, you'll see a green Form submitted successfully confirmation message.

Last updated
Was this helpful?

