The AddGrant operation gives the specified user permission to access the queue specified.
| Name | Description | Type | Value |
|---|---|---|---|
QueueName | Specifies the queue the grant is applied to. | Required. The name of the queue, as specified when the queue was created. | MyQueue |
Grantee.EmailAddress | The email address of the user receiving the grant. | Required. String. | email_alias@server_domain.com |
Permission | The grant, or permission, to add for the grantee. See Access Control Overview for a list of available grants. | String. | ReceiveMessage |
The following sample demonstrates adding a ReceiveMessage grant for the specified queue.
http://queue.amazonaws.com/A29E9VSPHGOG23/queue2 ?Action=AddGrant &Version=2006-04-01 &AWSAccessKeyId=[ACCESS_KEY_ID] &Expires=[TIME] &Signature=[SIGNATURE] &Grantee.EmailAddress=[EMAIL_ADDRESS] &Permission=ReceiveMessage