HEX
Server: LiteSpeed
System: Linux s3512.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: surajaut (1797)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/iotsitewise/list-access-policies.rst
**To list all access policies**

The following ``list-access-policies`` example lists all access policies for a user who is a portal administrator. ::

    aws iotsitewise list-access-policies \
        --identity-type USER \
        --identity-id a1b2c3d4e5-a1b2c3d4-5678-90ab-cdef-bbbbbEXAMPLE

Output::

    {
        "accessPolicySummaries": [
            {
                "id": "a1b2c3d4-5678-90ab-cdef-cccccEXAMPLE",
                "identity": {
                    "user": {
                        "id": "a1b2c3d4e5-a1b2c3d4-5678-90ab-cdef-bbbbbEXAMPLE"
                    }
                },
                "resource": {
                    "portal": {
                        "id": "a1b2c3d4-5678-90ab-cdef-aaaaaEXAMPLE"
                    }
                },
                "permission": "ADMINISTRATOR"
            }
        ]
    }

For more information, see `Administering your portals <https://docs.aws.amazon.com/iot-sitewise/latest/userguide/administer-portals.html>`__ in the *AWS IoT SiteWise User Guide*.