AddGrant (SOAP)

The AddGrant operation gives the specified user permission to access the queue specified.

AddGrant requests are validated on the following:

Returns Success if the action succeeded or an error response if unsuccessful.

NameDescriptionTypeValue
QueueNameSpecifies the queue the grant is applied to.Required. The name of the queue, as specified when the queue was created.MyQueue
Grantee.EmailAddressThe email address of the user receiving the grant.Required. String.email_alias@server_domain.com
PermissionThe 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.