Not sure as to what tag to put this. Sorry
But wanted to know is there any api that will give me the last used time of a service account
User and groups have them in the response
Not sure as to what tag to put this. Sorry
But wanted to know is there any api that will give me the last used time of a service account
User and groups have them in the response
Currently, Google Cloud IAM APIs do not provide a direct field for the last-used time of a service account like they do for users or groups. To track usage, you typically need to rely on Cloud Audit Logs or Service Account Key Metrics in Cloud Logging/Monitoring, which record when a service account was used to access resources. You can query these logs to determine the last activity timestamp, but there’s no single API that returns it directly in the service account metadata.