menu

Top Categories

Spotlight

todayMarch 6, 2021

industry + cloud Jake

Critiquing cloud lockin

I hear a lot of talk about cloud lockin. I hear it from people with self funded startups, authors on tech blogs and developers. The argument I hear most is that if you start using cloud native tooling, you’ll become dependent on it, accumulate tech debt and be forever burdened. [...]


Cleaning up users in 1password

vendor guides + secure development Jake todayJune 10, 2020 100

Background
share close

Recently I was helping a company audit their 1password account. Thought I’d share some useful snippets using jq and the 1password CLI tool.

This command suspends users who haven’t logged in for 3 months

op list users | jq -r '.[] | .uuid' | xargs -iUSER op get user USER | jq -r ' select(.lastAuthAt | fromdateiso8601 <= now - 7776000).uuid' | xargs -iUSER op suspend USER

After suspending all the users for a few days (waiting to see if people complain), this command can be used to purge those users and free up their licenses.

op list users | jq -r '.[] | select(.state=="S") | .uuid' | xargs -iUSER op delete user USER

Written by: Jake

Tagged as: , , .

Rate it
Previous post

Similar posts