ListGrants

The ListGrants action lists the grants for the specified queue. See Access Control for Queues for more details about grants. You can call this action if you're the owner of the queue or if you have FullControl permission for the queue. You can list all grants, or you can filter the list by specifying a particular grantee or a particular permission. When specifying a grantee, you can use either Grantee.EmailAddress with the user's e-mail address (example: user@example.com) or Grantee.ID with the user ID returned by a ListGrants request (example: 79a59df900b949e55d96a1e698fbacedfd6e09d98eacf8f8d5218e7cd47ef2be).

The following table lists the special request parameters the action uses (in addition to the common request parameters listed in Common Request Parameters).

NameDescriptionRequired

QueueName

The name of the queue whose grants you want to list.

Type: String (example: MyQueue)

Yes

Grantee.EmailAddress

If specified, this parameter filters the list to include only the permissions granted to the specified grantee. Grantee.ID can be used instead. For SOAP requests, see About Specifying Grantees.

Type: String

No

Grantee.ID

If specified, this parameter filters the list to include only the permissions granted to the specified grantee. Grantee.EmailAddress can be used instead. For SOAP requests, see About Specifying Grantees.

Type: String

No

Permission

If specified, filters the list to include only grants for the specified permission.

Type: String (example: ReceiveMessage)

No

The following table lists the response elements the action returns (in addition to the common response elements listed in The Structure of a Response). See the Sample Response.

NameDescription

DisplayName

A human-readable string that identifies the grantee. For information about how the value of this element is determined, see Using a Canonical Representation.

Type: String

Ancestor: Grantee

Grantee

An element with information identifying the person receiving the grant.

Ancestor: GrantList

Child: DisplayName, ID

GrantList

An element with information about a single grant. See the example response below.

Ancestor: ListGrantsResponse

Child: Grantee, Permission

ID

A system-assigned string that uniquely identifies the grantee.

Type: String

Ancestor: Grantee

Permission

The type of permission the grantee has received.

Type: String

Valid Values: FullControl | ReceiveMessage | SendMessage

Ancestor: GrantList

The action returns no errors besides the common errors listed in Common Errors.