Using Powershell to Access the Duo Admin API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2020 06:41 PM
Has anyone had any luck getting powershell to work. with the API. The documenation is horrid and i don’t want to go through the hassle of the module that i found on github. If anyone has any scripts to connect to it with powershell, that would be awesmoe if you can share.
Thanks!
- Labels:
-
API - General

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2020 01:32 AM
now Have you got the solution?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2020 01:09 AM
how do you call API with powershell?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2020 11:55 AM
May be old news by this point…however, after futzing around for a couple hours trying to get Powershell Invoke-RestMethod to work… (that encrypting passwod thing is a bear) I went for the GitHub module, and had it up and running in about 10 minutes.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2022 07:14 PM
Same here…
mbegan (Matt Egan) (github.com)
That module seems to be the only thing that works.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2022 02:31 AM
Hi,
If you still need it, here is some sample code to work with authenticating to the REST API in PowerShell.
I agree that the documentation is lacking.
Regards,
Michael
