0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.118.33.239


Current Path : /proc/thread-self/root/usr/share/doc/awscli/examples/iotsitewise/
Upload File :
Current File : //proc/thread-self/root/usr/share/doc/awscli/examples/iotsitewise/update-access-policy.rst

**To grant a project viewer ownership of a project**

The following ``update-access-policy`` example update an access policy that grants a project viewer ownership of a project. ::

    aws iotsitewise update-access-policy \
        --access-policy-id a1b2c3d4-5678-90ab-cdef-dddddEXAMPLE
        --cli-input-json file://update-project-viewer-access-policy.json

Contents of ``update-project-viewer-access-policy.json``::

    {
        "accessPolicyIdentity": {
            "user": { 
                "id": "a1b2c3d4e5-a1b2c3d4-5678-90ab-cdef-bbbbbEXAMPLE"
            }
        },
        "accessPolicyPermission": "ADMINISTRATOR",
        "accessPolicyResource": { 
            "project": { 
                "id": "a1b2c3d4-5678-90ab-cdef-eeeeeEXAMPLE"
            }
        }
    }

This command produces no output.

For more information, see `Assigning project owners <https://docs.aws.amazon.com/iot-sitewise/latest/appguide/assign-project-owners.html>`__ in the *AWS IoT SiteWise Monitor Application Guide*.