Skip to content

This script generates a CSV report of user access to AWS accounts managed by AWS Single Sign-On (SSO). The report includes AWS Organization accounts, permission sets, SSO groups, and SSO users.

Notifications You must be signed in to change notification settings

gemini-oss/aws-sso-account-access-report

Repository files navigation

AWS SSO Account Access Report

This script generates a CSV report of user access to AWS accounts managed by AWS Single Sign-On (SSO). The report includes AWS Organization accounts, permission sets, SSO groups, and SSO users.

Prerequisites

  • Python 3.10.8
  • AWS account credentials with appropriate read-only permissions to access AWS SSO, AWS Organizations, and AWS Identity Store

Configuration

  • Export your AWS Access creds to the environment
  • Update the config.ini file with the following information:
[DEFAULT]
region = <AWS_REGION>
identity_store_id = <IDENTITY_STORE_ID>
sso_instance_arn = <SSO_INSTANCE_ARN>
org_id = <AWS_ORG_ID>
num_workers = <INT_NUM_WORKERS>

Replace <AWS_REGION>, <IDENTITY_STORE_ID>, <SSO_INSTANCE_ARN>, and <AWS_ORG_ID> with the appropriate values for your environment.

Installation

  • Clone the repository
  • Change to the repository directory
  • Install the required dependencies
pip install -r requirements.txt

Usage

Run the script:

  • export AWS account credentials to the environments
python aws_sso_account_access_report.py

The script will generate a CSV file named output.csv containing the account access report with the following columns:

"AccountID", "Account Name", "Group", "User Account", "Permission Set"

About

This script generates a CSV report of user access to AWS accounts managed by AWS Single Sign-On (SSO). The report includes AWS Organization accounts, permission sets, SSO groups, and SSO users.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages