HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3/dist-packages/awscli/examples/iam/get-service-last-accessed-details-with-entities.rst
**To retrieve a service access report with details for a service**

The following ``get-service-last-accessed-details-with-entities`` example retrieves a report that contains details about IAM users and other entities that accessed the specified service. To generate a report, use the ``generate-service-last-accessed-details`` command. To get a list of services accessed with namespaces, use ``get-service-last-accessed-details``. ::

    aws iam get-service-last-accessed-details-with-entities \
        --job-id 78b6c2ba-d09e-6xmp-7039-ecde30b26916 \
        --service-namespace lambda

Output::

    {
        "JobStatus": "COMPLETED",
        "JobCreationDate": "2019-10-01T03:55:41.756Z",
        "JobCompletionDate": "2019-10-01T03:55:42.533Z",
        "EntityDetailsList": [
            {
                "EntityInfo": {
                    "Arn": "arn:aws:iam::123456789012:user/admin",
                    "Name": "admin",
                    "Type": "USER",
                    "Id": "AIDAIO2XMPLENQEXAMPLE",
                    "Path": "/"
                },
                "LastAuthenticated": "2019-09-30T23:02:00Z"
            },
            {
                "EntityInfo": {
                    "Arn": "arn:aws:iam::123456789012:user/developer",
                    "Name": "developer",
                    "Type": "USER",
                    "Id": "AIDAIBEYXMPL2YEXAMPLE",
                    "Path": "/"
                },
                "LastAuthenticated": "2019-09-16T19:34:00Z"
            }
        ]
    }