Skip to content

Commit 5f606a0

Browse files
authored
Merge pull request #116 from 1Password/jack/last_auth_at
2 parents 5894e8c + 2e57c59 commit 5f606a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

1password/reporting/user-access-list.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class User:
1111
def __init__(
12-
self, name, email, uuid, state, type, createdAt, updatedAt, groups, vaults
12+
self, name, email, uuid, state, type, createdAt, updatedAt, lastAuthAt, groups, vaults
1313
):
1414
self.name = name
1515
self.email = email
@@ -18,6 +18,7 @@ def __init__(
1818
self.type = type
1919
self.createdAt = createdAt
2020
self.updatedAt = updatedAt
21+
self.lastAuthAt = lastAuthAt
2122
self.groups = groups
2223
self.vaults = vaults
2324

@@ -71,6 +72,7 @@ def writeReport(users):
7172
"userType",
7273
"userCreatedAt",
7374
"userUpdatedAt",
75+
"lastAuthAt",
7476
"directlyAssignedVaults",
7577
"groups",
7678
]
@@ -86,6 +88,7 @@ def writeReport(users):
8688
user.type,
8789
user.createdAt,
8890
user.updatedAt,
91+
user.lastAuthAt,
8992
user.vaults,
9093
user.groups,
9194
]
@@ -113,6 +116,7 @@ def main():
113116
type=user["type"],
114117
createdAt=userData["created_at"],
115118
updatedAt=userData["updated_at"],
119+
lastAuthAt=userData["last_auth_at"],
116120
groups=str(groups).removeprefix("[").removesuffix("]"),
117121
vaults=str(vaults).removeprefix("[").removesuffix("]"),
118122
)

0 commit comments

Comments
 (0)