metal-cli icon indicating copy to clipboard operation
metal-cli copied to clipboard

Allow Org Admins to see the last_login_at field for all project members

Open RobertKielty opened this issue 1 year ago • 0 comments

What problem are you facing?

I cannot easily monitor inactive accounts in the org where I am an admin.

As an Equinix Metal Org Admin, I want to use the metal projects get -o json command to report on all of the inactive user accounts, by project by including the last_login_at field for all members listed in a project's members array.

metal projects get reports a last_login_at time on the account that used to authenticate the cli during metal init

As an Org Admin, I am working on a large, diverse, multi-project, userbase whose members come from many different coporations (and none) on Equinix Metal for the CNCF.

I want to report inactive members, by project so that I can clear down un-used accounts and can inform project maintainers before I do so.

How could the Equinix Metal CLI help solve this problem?

Have the output of metal projects get -o json report the last_login_at field for all users thereby respecting the org admin role that I have used to authenticate the cli during metal init.

Additional background

I have reported this on a support call. The support team have been helpful in verfiying the problem and explaining current behaviour.

@vielmetti has triaged this internally, verifying current behavior.

Many thanks to both the support team and @vielmetti for all their help on this.

RobertKielty avatar May 24 '24 17:05 RobertKielty