AWSSystemsManagerJustInTimeAccessTokenSessionPolicy
Summary
The managed policy AWSSystemsManagerJustInTimeAccessTokenSessionPolicy allows Systems Manager to apply scoped down permissions to a just-in-time node access session once it is started.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/AWSSystemsManagerJustInTimeAccessTokenSessionPolicy- Default version
- v3
- Created
- Last edited
- Services
- identitystore, kms, ssm, ssm-guiconnect, sso
Control-plane actions (10)
By access level: 1 Permissions management, 4 Read, 5 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| Identity Store | 1 of 29 | 1 Read; 1 restricted, 1 conditional | identitystore:DescribeUser |
| KMS | 2 of 58 | 1 Permissions management, 1 Write; 2 restricted, 2 conditional | kms:CreateGrant, kms:GenerateDataKey |
| Systems Manager | 3 of 164 | 1 Read, 2 Write; 3 restricted, 2 conditional | ssm:GetCommandInvocation, ssm:SendCommand, ssm:StartSession |
| GUI Connect | 3 of 7 | 1 Read, 2 Write; 0 restricted, 0 conditional | ssm-guiconnect:CancelConnection, ssm-guiconnect:GetConnection, ssm-guiconnect:StartConnection |
| IAM Identity Center | 1 of 126 | 1 Read; 1 restricted, 1 conditional | sso:ListDirectoryAssociations* |
Identity Store: 1 actions
- identitystore:DescribeUser (Read)
KMS: 2 actions
- kms:CreateGrant (Permissions management)
- kms:GenerateDataKey (Write)
Systems Manager: 3 actions
- ssm:GetCommandInvocation (Read)
- ssm:SendCommand (Write)
- ssm:StartSession (Write)
GUI Connect: 3 actions
- ssm-guiconnect:CancelConnection (Write)
- ssm-guiconnect:GetConnection (Read)
- ssm-guiconnect:StartConnection (Write)
IAM Identity Center: 1 actions
- sso:ListDirectoryAssociations (Read)
Data-plane actions (0)
By access level: none.
This policy grants no actions in this plane.
Excluded and conditional actions
No patterns are excluded by NotAction or Deny statements.
Resource scope and attachment
Resource scope across granted actions: mixed.
Can be attached: Yes, to users, groups and roles.
Why this tier
- Grants 6 write, tagging or permissions-management actions, short of full control of any service.
Guidance
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Related policies
Same service
- AgentRegistryFullAccess
- AIOpsConsoleAdminPolicy
- AIOpsOperatorAccess
- AmazonAppFlowFullAccess
- AmazonAuroraDSQLConsoleFullAccess
- AmazonAuroraDSQLFullAccess
- AmazonBioDiscoveryFullAccess
- AmazonBioDiscoveryInAppFullAccess
Same domain
Frequently asked questions
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Policy JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "SsmStartSession",
"Effect": "Allow",
"Action": [
"ssm:StartSession"
],
"Resource": [
"arn:aws:ssm:*:*:document/SSM-SessionManagerRunShell"
]
},
{
"Sid": "GuiConnect",
"Effect": "Allow",
"Action": [
"ssm-guiconnect:CancelConnection",
"ssm-guiconnect:GetConnection",
"ssm-guiconnect:StartConnection"
],
"Resource": "*"
},
{
"Sid": "SessionManagerKmsPermission",
"Effect": "Allow",
"Action": [
"kms:GenerateDataKey"
],
"Resource": "arn:aws:kms:*:*:key/*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/SystemsManagerJustInTimeNodeAccessManaged": "true"
}
}
},
{
"Sid": "RdpKmsPermission",
"Effect": "Allow",
"Action": [
"kms:CreateGrant"
],
"Resource": "arn:aws:kms:*:*:key/*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/SystemsManagerJustInTimeNodeAccessManaged": "true"
},
"StringLike": {
"kms:ViaService": "ssm-guiconnect.*.amazonaws.com"
},
"Bool": {
"aws:ViaAWSService": "true"
}
}
},
{
"Sid": "RdpStartSession",
"Effect": "Allow",
"Action": [
"ssm:StartSession"
],
"Resource": [
"arn:aws:ssm:*:*:document/AWS-StartPortForwardingSession"
],
"Condition": {
"StringEquals": {
"aws:CalledViaFirst": "ssm-guiconnect.amazonaws.com"
}
}
},
{
"Sid": "SsmRdpSsoSetup",
"Effect": "Allow",
"Action": [
"sso:ListDirectoryAssociations*",
"identitystore:DescribeUser",
"ssm:GetCommandInvocation"
],
"Resource": "*",
"Condition": {
"StringEquals": {
"aws:CalledViaFirst": "ssm-guiconnect.amazonaws.com"
}
}
},
{
"Sid": "SsmRdpSsoSetupSendCommand",
"Effect": "Allow",
"Action": [
"ssm:SendCommand"
],
"Resource": [
"arn:aws:ssm:*:*:document/AWSSSO-CreateSSOUser"
],
"Condition": {
"StringEquals": {
"aws:CalledViaFirst": "ssm-guiconnect.amazonaws.com"
}
}
}
]
}
Version history
Current version v3, edited by AWS on 2026-02-12. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.
Attach snippets
AWS CLI
aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/AWSSystemsManagerJustInTimeAccessTokenSessionPolicy
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWSSystemsManagerJustInTimeAccessTokenSessionPolicy
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWSSystemsManagerJustInTimeAccessTokenSessionPolicyCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AWSSystemsManagerJustInTimeAccessTokenSessionPolicyTerraform
resource "aws_iam_role_policy_attachment" "awssystemsmanagerjustintimeaccesstokensessionpolicy" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/AWSSystemsManagerJustInTimeAccessTokenSessionPolicy"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("AWSSystemsManagerJustInTimeAccessTokenSessionPolicy"),
);Sources
Pending editorial review. No editorial sources are listed yet.