HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //proc/722141/root/lib/python3.6/site-packages/awscli/examples/workmail/put-access-control-rule.rst
**To put a new access control rule**

The following ``put-access-control-rule`` example denies the specified user access to the specified Amazon WorkMail organization. ::

    aws workmail put-access-control-rule \
        --name "myRule" \
        --effect "DENY" \
        --description "my rule" \
        --user-ids "S-1-1-11-1111111111-2222222222-3333333333-3333" \
        --organization-id m-n1pq2345678r901st2u3vx45x6789yza

This command produces no output.

For more information, see `Working with Access Control Rules <https://docs.aws.amazon.com/workmail/latest/adminguide/access-rules.html>`__ in the *Amazon WorkMail Administrator Guide*.