NinjaOne integration
What does the NinjaOne integration do?
Our NinjaOne integration provides users with a powerful combination of documentation, remote monitoring, and management capabilities. Seamlessly access and manage NinjaOne within Rewst, monitor and troubleshoot devices, deploy software, and perform remote tasks more effectively. Use this integration to centralize your IT documentation and RMM workflows, ensuring a comprehensive and streamlined approach to IT management within the Rewst platform.
Set up the NinjaOne integration
Set up steps in NinjaOne
Navigate to Administration > Apps > API > Add Client App.
Choose Web from the Application platform drop-down selector.
Enter the Name for the app as desired, for example
Rewst.Add the following URL to the Redirect URIs field:
https://app.rewst.ai/api/oauth/callback.Check off all your desired Scopes. Choosing all scopes will give Rewst robust access.
Check off Client credentials and Refresh token under Allowed grant types.
Click Add.
Copy the values in the Client ID and Client secret fields of the dialog that appears, and store them somewhere secure. You'll need them for further setup steps in Rewst. Note that once you navigate away from this dialog, you won't be able to view these values again.
Set up steps in Rewst
Navigate to Integrations in the left side menu of your Rewst platform.
In the Integrations page, search for the
NinjaOneintegration.Click on the integration tile to launch the configuration setup dialog.
Choose from either Production or Demo Mode for the setup of your integration:
Production: Connect with real credentials for live data
Demo Mode: Explore the integration with simulated mock responsesc
Click Next: Configure and Authenticate.
Select + Create New Credential from the Credential drop-down selector.
Enter the information copied from NinjaOne into the relevant fields:
Client ID
Client Secret
Update the value in the Token URL field to the following:
https://app.ninjarmm.com/ws/oauth/token.Note that if you chose limited scopes when setting up your NinjaOne app, you'll need to choose a test action that falls within these scopes. Failing to match scopes to action will result in a 403 error.
Click Save Credential.
Click Authorize.
Return to the Rewst platform.
Click Next: Confirm.
Click Install Integration. The integration will now appear in the top Connected section of your Integrations page.
Click on the installed integration. Scroll down to the Org Mappings section of the configuration page and complete organization mapping as needed.
Use custom PowerShell scripts with your RMM integration
This brand of RMM allows PowerShell scripts to be passed via API. The RMM runs your script on an endpoint, and Rewst has no way to see the result, so the script has to POST back to a Rewst URL. PowerShell only runs on the RMM's side, never inside Rewst. To report the script back to Rewst, you'll need to add a wait for webhook callback node. This will generate a unique callback URL and pause until an external system calls it or the timeout expires.
If using custom scripts, you'll need to add this to bottom of your existing script to ensure the call back to Rewst is made. The $resumeUrl / $resumeToken are on the node's URL Ready output, and the workflow passes both into the RMM script as parameters.
Timeout is required and bounded: 60 seconds minimum, 604800 maximum, which is 7 days. You can control the response your script sees. The responseStatus defaults to 200, and there's an optional responseBody. This is useful if the RMM cares what came back.
Last updated
Was this helpful?
