---
updatedAt: 2026-04-05T13:11:55.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/administration/llms.txt
---

# GET AWS IAM Role

Get information of the AWS IAM role assigned to a user.


**Security:** Requires admin privileges.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "JFrog Platform - AWS IAM API",
    "description": "AWS IAM Role assignment APIs for the JFrog Platform.\n\n**Authentication:** Access Tokens as bearer token in authorization header (Authorization: Bearer `<token>`)\n\n**Security:** All APIs require admin privileges.\n",
    "version": "1.0.0",
    "contact": {
      "name": "JFrog Support"
    }
  },
  "servers": [
    {
      "url": "https://{jfrog_url}"
    }
  ],
  "tags": [
    {
      "name": "AWS IAM",
      "description": "APIs for assigning, retrieving, and deleting AWS IAM roles for JFrog Platform users."
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/access/api/v1/aws/iam_role/{username}": {
      "get": {
        "tags": [
          "AWS IAM"
        ],
        "summary": "GET AWS IAM Role",
        "description": "Get information of the AWS IAM role assigned to a user.\n\n\n**Security:** Requires admin privileges.\n",
        "operationId": "getAwsIamRole",
        "parameters": [
          {
            "name": "username",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The username"
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AwsIamRoleAssignment"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - User not found"
          },
          "401": {
            "description": "Bad Credentials - Invalid credentials"
          },
          "403": {
            "description": "Permission Denied - Insufficient permissions"
          },
          "404": {
            "description": "Not Found - No IAM role assigned for this user"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Access Token as bearer token"
      }
    },
    "schemas": {
      "AwsIamRoleAssignment": {
        "type": "object",
        "required": [
          "username",
          "iam_role"
        ],
        "properties": {
          "username": {
            "type": "string",
            "description": "The username to assign or query the role for"
          },
          "iam_role": {
            "type": "string",
            "description": "AWS IAM role ARN to assign to the user"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```