HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-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*.