GetDelegationRequest
Retrieves information about a specific delegation request.
If a delegation request has no owner or owner account, GetDelegationRequest for that delegation request can be called by any account.
If the owner account is assigned but there is
no owner id, only identities within that owner account can call GetDelegationRequest
for the delegation request. Once the delegation request is fully owned, the owner of the request gets
a default permission to get that delegation request. For more details, see
Managing Permissions for Delegation Requests.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- DelegationPermissionCheck
-
Specifies whether to perform a permission check for the delegation request.
If set to true, the
GetDelegationRequestAPI call will start a permission check process. This process calculates whether the caller has sufficient permissions to cover the asks from this delegation request.Setting this parameter to true does not guarantee an answer in the response. See the
PermissionCheckStatusand thePermissionCheckResultresponse attributes for further details.Type: Boolean
Required: No
- DelegationRequestId
-
The unique identifier of the delegation request to retrieve.
Type: String
Length Constraints: Minimum length of 16. Maximum length of 128.
Pattern:
[\w-]+Required: Yes
Response Elements
The following elements are returned by the service.
- DelegationRequest
-
The delegation request object containing all details about the request.
Type: DelegationRequest object
- PermissionCheckResult
-
The result of the permission check, indicating whether the caller has sufficient permissions to cover the requested permissions. This is an approximate result.
-
ALLOWED: The caller has sufficient permissions cover all the requested permissions. -
DENIED: The caller does not have sufficient permissions to cover all the requested permissions. -
UNSURE: It is not possible to determine whether the caller has all the permissions needed. This output is most likely for cases when the caller has permissions with conditions.
Type: String
Valid Values:
ALLOWED | DENIED | UNSURE -
- PermissionCheckStatus
-
The status of the permission check for the delegation request.
This value indicates the status of the process to check whether the caller has sufficient permissions to cover the requested actions in the delegation request. Since this is an asynchronous process, there are three potential values:
-
IN_PROGRESS: The permission check process has started. -
COMPLETED: The permission check process has completed. ThePermissionCheckResultwill include the result. -
FAILED: The permission check process has failed.
Type: String
Valid Values:
COMPLETE | IN_PROGRESS | FAILED -
Errors
For information about the errors that are common to all actions, see Common Errors.
- NoSuchEntity
-
The request was rejected because it referenced a resource entity that does not exist. The error message describes the resource.
HTTP Status Code: 404
- ServiceFailure
-
The request processing has failed because of an unknown error, exception or failure.
HTTP Status Code: 500
Examples
Example
This example illustrates one usage of GetDelegationRequest.
Sample Request
https://iam.amazonaws.com/?Action=GetDelegationRequest
&DelegationRequestId=e4bdcdae-4f66-11eD-ELEG-ATIONEXAMPLE
&Version=2010-05-08
&AUTHPARAMS
Sample Response
<GetDelegationRequestResponse xmlns="https://iam.amazonaws.com/doc/2010-05-08/">
<GetDelegationRequestResult>
<DelegationRequest>
<UpdatedTime>2025-11-16T00:00:00.570Z</UpdatedTime>
<DelegationRequestId>e4bdcdae-4f66-11eD-ELEG-ATIONEXAMPLE</DelegationRequestId>
<Description>Example Request</Description>
<SessionDuration>3600</SessionDuration>
<RequestorId>112233445566</RequestorId>
<OnlySendByOwner>false</OnlySendByOwner>
<PermissionPolicy>
{
"Statement": [
{
"Sid": "IAMAll",
"Effect": "Allow",
"Action": [
"iam:*"
],
"Resource": [
"*"
]
}
]
}
</PermissionPolicy>
<RolePermissionRestrictionArns/>
<State>UNASSIGNED</State>
<RequestorName>RequestorFriendlyName</RequestorName>
<CreateDate>2025-11-16T00:00:00.570Z</CreateDate>
</DelegationRequest>
</GetDelegationRequestResult>
<ResponseMetadata>
<RequestId>e4bdcdae-4f66-11e4-aefa-bfd6aEXAMPLE</RequestId>
</ResponseMetadata>
</GetDelegationRequestResponse>
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: