As a leader, it can be tempting to push your team to get the most out of them and to get results. People don’t like like saying no and often just want to be helpful and give it their all. Many people will even offer to do things like take [...]
todayMay 14, 2022
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