Get list of users who have logged into Octopus in the last 6 months

hankey39

I was wondering if there is a way to find out what users have logged into Octopus Deploy in the last 3 months. I am able get a list of users in Octopus by using an REST API call: Invoke-RestMethod "$OctopusUrl/api/users?take=500" -Headers $header. I cant see an API call to get user login activity. Just want to ask if anyone knows a way to do this?

Evolve Software Ltd

I can potentially see two ways of doing this

1) Use the api/events endpoint. This will allow you to provide a range of dates using the from and to parameters. You would then have to enumerate all records and pull out the distinct users you come across - you probably want to narrow this by ensuring the account authenticated with a cookie "IdentityEstablishedWith": "Session cookie"

2) Use the results from the api/users to call the api/events endpoint, with the date range and the specific user e.g. ?users=Users-1. Here, you only need to check if you get more than 1 result with the "IdentityEstablishedWith": "Session cookie" field set correctly

Hope this helps

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to get users who are not active for the past 6 months

How to get a list of users who has logged on to a remote computer?

Query to get all users that have logged in within the last 30 days

How to fetch users who does not have reports for 6 consecutive months using laravel?

Get count and list of cutomers (ID) that have no sales in the last 2 months

Script a list of users who have been logged in for more than 24 hours?

Find users with activities in all the last 6 months

python script to get the IAM users list who has not logged in for 60 days

In UNIX, how to find users who have logged in yesterday or earlier

The maximum number of users who have logged in to the Oracle Database

Eloquent query to get users who have employee role and first or last name contains characters

list of users who have access to a portal

I can't make a list of user and the places that they can't go if they have been there in the last 6 months

get users who have a specific role

Get users who have access to circle

Get last 6 months name in Array

Get records from last 6 Months MySQL

Get last 6 months first day in BigQuery

Github API: How to get list of users who have starred a repo AND cloned it

I need to get the list of users who have previously been sent message (MySQL)

laravel redirecting users who are not logged in

Get the Top 5 users in each month for the last three months Django

How to get list of days for last month, last three months in MomentJS

Get all users who placed requests in last three years

SQL Last 6 Months

Make all users who have logged into Shiny-Server reload without resigning in

Django Open ID - Assign permissions to users who have never logged in by email

List all the users who have logs of more than 1 days

Query to list users who have answered similarly to questions as the specified user