This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Set Okta mount point | |
| OKTA_MOUNT_POINT='auth/okta' | |
| # Get list of Okta groups | |
| OKTA_GROUPS=$(vault list -format=json ${OKTA_MOUNT_POINT}/groups | jq -r '.[]') | |
| # Loop through the groups and print their policies | |
| while IFS= read -r GROUP |