https://github.com/umihico/iam-user-permissions-viwer
Simple bash scripts that help you to export and visualize each IAM user's permission detail.
https://github.com/umihico/iam-user-permissions-viwer
Last synced: 3 months ago
JSON representation
Simple bash scripts that help you to export and visualize each IAM user's permission detail.
- Host: GitHub
- URL: https://github.com/umihico/iam-user-permissions-viwer
- Owner: umihico
- Created: 2021-03-23T23:12:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-23T23:27:50.000Z (over 4 years ago)
- Last Synced: 2025-04-13T03:41:00.792Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 5
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# iam-user-permissions-viwer
This simple bash scripts helps you to visualize each IAM user's permission detail like this.
```bash
-----------------------------------------------------------
| GetUser |
+---------------------------------------------------------+
|| User ||
|+-------------+-----------------------------------------+|
|| Arn | arn:aws:iam::123456789012:user/s3user ||
|| CreateDate | 2018-01-01T20:00:00+00:00 ||
|| Path | / ||
|| UserId | ABCDEFGHIJKLMNOYQRSTU ||
|| UserName | s3user ||
|+-------------+-----------------------------------------+|
------------------
|ListUserPolicies|
+----------------+
------------------------------------------------------------------------
| ListAttachedUserPolicies |
+----------------------------------------------------------------------+
|| AttachedPolicies ||
|+---------------------------------------------+----------------------+|
|| PolicyArn | PolicyName ||
|+---------------------------------------------+----------------------+|
|| arn:aws:iam::aws:policy/AmazonS3FullAccess | AmazonS3FullAccess ||
|+---------------------------------------------+----------------------+|
----------------------------------
| GetPolicyVersion |
+--------+----------+------------+
| Action | Effect | Resource |
+--------+----------+------------+
| s3:* | Allow | * |
+--------+----------+------------+
-------------------
|ListGroupsForUser|
+-----------------+```
## How to
```bash
sh one.sh # shows your own permission details
USERNAME=s3user sh one.sh # you can specify USERNAME
sh all.sh # redirect all users details under created directory 'output'
```[Japanese article here](https://qiita.com/umihico/items/fcde03200bd0d1a7ed78)