cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
450
Views
0
Helpful
2
Replies

Automate User Reports to Clients

bmcd113
Level 1
Level 1

Hello, has anyone ever successfully setup automated reports on user enrollment and usage to external email recipients?

Looking to send reports out to clients based on their particular user counts monthly.

2 Replies 2

raphka
Cisco Employee
Cisco Employee

Hi bmcd113,
The Accounts API when used with the Admin API for the child accounts would have the ability to make the calls required to get this information from Duo. You could then export/integrate the information output with your email systems.

If you are an MSP with questions about the Accounts API, please contact the Duo MSP team, who will be able to assist in more detail.

Gigawatt
Level 1
Level 1

mbegan/Duo-PSModule: Duo Admin API Powershell Wrapper Module (github.com)

That's something we use. It's easy to setup but pretty sure this will help you on what you're needing. 

After installing it you can retrieve properties such as 'last_login' & the module of their 'phone' since that would be their 2nd factor(enrolled). 

I hope this helps! 

 

$allResults = $Var | ForEach-Object {
   
    duoGetUser -username $_ | Select-Object realname,username,status,is_enrolled,@{Name = 'last_login'; Expression = {Get-Date -UnixTimeSeconds $_.last_login }},@{name = 'Enrolled device'; Expression = { $_.phones.model -join ", " }}}
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links