Service last accessed information
Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.
Service last accessed information is data IAM keeps on when a user, group, role or policy last tried to use an AWS service, including attempts that failed. It shows which allowed services go unused and feeds unused access findings. Recent activity usually appears within four hours, according to the AWS CLI reference.
All terms ยท Open the workbench
An example, sourced
AWS says the data covers all attempts to access an AWS API, not just successful ones, and that aws iam generate-service-last-accessed-details starts the report for a user, group, role or policy.
Why it matters here
Unused permissions are the clearest candidates for removal. The workbench does not read this data because it never touches an account.
Related pages
Sources
- https://docs.aws.amazon.com/cli/latest/reference/iam/generate-service-last-accessed-details.html, read 16 Nov 2026
Last reviewed 16 Nov 2026.