Skip to main content

I’m creating a PowerShell script to update device ownership in IncidentIQ. Looking through the the docs, it looks like I will need some guid values for the UserID, SiteID, LocationID, and RoleID. 

Is there any api endpoint that would let me search for users based on username/email to get this information? I tried looking through the docs but all user searches seemed to require the userId field which I don’t have

This is the documentation I am using: https://incidentiq.stoplight.io/docs/v1/607c488c7e218-create-a-asset

POST to yoursite.incidentiq.com/api/v1.0/search/v2

Payload should be... {Query: (email address),Facets: 4,IncludeMatchedItem: false}


With that said, you’ll only get back limited info with that, such as the UserID.

You can then take that UserID and GET from yoursite.incidentiq.com/api/v1.0/users/(userID) to get the remaining info


@CSariaslani 9001480 colonial Thank you for submitting your question to our community! 😄

Thank you @jclark for jumping ahead with a reply. You are the expert! 


Reply