AnsweredAssumed Answered

Using the API how do you search for users based on their group_ids?

Question asked by Dustin (dule) Lenz on Jul 26, 2017
Latest reply on Jul 31, 2017 by Dustin (dule) Lenz

I have created a catalog item where one of the variables is the "user" picker.  When I query the parent incident for the variables, that variable contains the group_id of the user picked.


For subsequent tasks, I need the to get the email address of that user.  

 

I have tried things like...

 

Invoke-RestMethod "https://api.samanage.com/users.xml?groups_ids[1]=2437744" -Credential $Credentials -Method GET

 

Invoke-RestMethod "https://api.samanage.com/users.xml?groups_ids=2437744" -Credential $Credentials -Method GET

 

Any help would be appreciated.

Outcomes