Skip to main content
IAM Policy Map

AwsGlueSessionUserRestrictedPolicy

OperatorAWS managedActivePermissions reviewedShow on mapCompare

Summary

Provides permissions that allows users to create and use only the interactive sessions that are associated with the user. This policy also includes permissions to explicitly allow users to pass a restricted Glue session role.

Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.

Identity

ARN
arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedPolicy
Default version
v3
Created
Last edited
Services
glue, iam

Control-plane actions (13)

By access level: 2 List, 3 Read, 1 Tagging, 7 Write.

Control-plane actions by service
ServiceGrantedAccess levels and limitsGranted by
Glue12 of 3062 List, 3 Read, 1 Tagging, 6 Write; 11 restricted, 9 conditionalglue:CancelStatement, glue:CreateSession, glue:DeleteSession, glue:GetCompletion, glue:GetSession, glue:GetStatement, glue:ListSessions, glue:ListStatements, glue:RunStatement, glue:StartCompletion, glue:StopSession, glue:TagResource
IAM1 of 1901 Write; 1 restricted, 1 conditionaliam:PassRole
Glue: 12 actions
  • glue:CancelStatement (Write)
  • glue:CreateSession (Write)
  • glue:DeleteSession (Write)
  • glue:GetCompletion (Read)
  • glue:GetSession (Read)
  • glue:GetStatement (Read)
  • glue:ListSessions (List)
  • glue:ListStatements (List)
  • glue:RunStatement (Write)
  • glue:StartCompletion (Write)
  • glue:StopSession (Write)
  • glue:TagResource (Tagging)
IAM: 1 actions
  • iam:PassRole (Write)

Data-plane actions (0)

By access level: none.

This policy grants no actions in this plane.

Excluded and conditional actions

  • glue:UntagResource (deny-conditional, statement 5): 1 matching actions
  • tag:TagResources (deny-conditional, statement 5): 1 matching actions
  • tag:UntagResources (deny-conditional, statement 5): 1 matching actions

Resource scope and attachment

Resource scope across granted actions: mixed.

Can be attached: Yes, to users, groups and roles.

Why this tier

  • Grants 8 write, tagging or permissions-management actions, short of full control of any service.
  • Grants iam:PassRole, but only for scoped roles or under conditions (for example iam:PassedToService).

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.

Same service

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

Download policy.json

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowSessionActions",
      "Effect": "Allow",
      "Action": [
        "glue:CreateSession"
      ],
      "Resource": [
        "arn:aws:glue:*:*:session/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:RequestTag/owner": "${aws:userid}"
        },
        "ForAnyValue:StringEquals": {
          "aws:TagKeys": [
            "owner"
          ]
        }
      }
    },
    {
      "Sid": "AllowGlueTaggingAction",
      "Effect": "Allow",
      "Action": [
        "glue:TagResource"
      ],
      "Resource": "arn:aws:glue:*:*:session/*",
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/owner": "${aws:userid}",
          "aws:RequestTag/owner": "${aws:userid}"
        }
      }
    },
    {
      "Sid": "AllowCompletionActions",
      "Effect": "Allow",
      "Action": [
        "glue:StartCompletion",
        "glue:GetCompletion"
      ],
      "Resource": [
        "arn:aws:glue:*:*:completion/*"
      ]
    },
    {
      "Sid": "AllowGlueActions",
      "Effect": "Allow",
      "Action": [
        "glue:RunStatement",
        "glue:GetStatement",
        "glue:ListStatements",
        "glue:CancelStatement",
        "glue:StopSession",
        "glue:DeleteSession",
        "glue:GetSession"
      ],
      "Resource": [
        "arn:aws:glue:*:*:session/*"
      ],
      "Condition": {
        "StringEquals": {
          "aws:ResourceTag/owner": "${aws:userid}"
        }
      }
    },
    {
      "Sid": "AllowListSessions",
      "Effect": "Allow",
      "Action": [
        "glue:ListSessions"
      ],
      "Resource": [
        "*"
      ]
    },
    {
      "Sid": "DenyTagActions",
      "Effect": "Deny",
      "Action": [
        "glue:UntagResource",
        "tag:TagResources",
        "tag:UntagResources"
      ],
      "Resource": [
        "arn:aws:glue:*:*:session/*"
      ],
      "Condition": {
        "ForAnyValue:StringEquals": {
          "aws:TagKeys": [
            "owner"
          ]
        }
      }
    },
    {
      "Sid": "AllowPassRoleActions",
      "Effect": "Allow",
      "Action": [
        "iam:PassRole"
      ],
      "Resource": [
        "arn:aws:iam::*:role/service-role/AwsGlueSessionServiceRoleUserRestricted*"
      ],
      "Condition": {
        "StringLike": {
          "iam:PassedToService": [
            "glue.amazonaws.com"
          ]
        }
      }
    }
  ]
}

Version history

Current version v3, edited by AWS on 2024-08-05. 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/AwsGlueSessionUserRestrictedPolicy
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedPolicy
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedPolicy

CloudFormation

Resources:
  ExampleRole:
    Type: AWS::IAM::Role
    Properties:
      AssumeRolePolicyDocument: {}  # replace with your trust policy
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedPolicy

Terraform

resource "aws_iam_role_policy_attachment" "awsgluesessionuserrestrictedpolicy" {
  role       = aws_iam_role.example.name
  policy_arn = "arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedPolicy"
}

CDK (TypeScript)

role.addManagedPolicy(
  iam.ManagedPolicy.fromAwsManagedPolicyName("AwsGlueSessionUserRestrictedPolicy"),
);

Sources

Pending editorial review. No editorial sources are listed yet.