Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paoliniluis/metabase-massive-permission
Python script to massively create connections, groups, users and permissions
https://github.com/paoliniluis/metabase-massive-permission
Last synced: 7 days ago
JSON representation
Python script to massively create connections, groups, users and permissions
- Host: GitHub
- URL: https://github.com/paoliniluis/metabase-massive-permission
- Owner: paoliniluis
- License: mit
- Created: 2023-05-02T00:22:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-02T01:36:18.000Z (over 1 year ago)
- Last Synced: 2024-11-07T06:47:36.579Z (about 2 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# metabase-massive-permission
Python script to massively create connections, groups, users and permissions## How to use it
1) Install the requests python library
2) Modify it and make sure you're pointing to the correct hostname of the DB (lines 21-25)
3) Use the env vars host (hostname of the Metabase server), user (admin user), password (admin password) and times (number of times you want to loop through the process)## Some performance numbers
Metabase with Postgres App DB on Alpine Docker (metabase/metabase-enterprise:v1.46.2 and postgres:15.2-alpine), Metabase with 2 cores and 1536Mb of RAM ("JAVA_TOOL_OPTIONS: -Xmx1488m -Xms500m") and Postgres App DB with 1 CPU and 128Mb of RAM, doing the process 500 times, it took 1:30.
![image](https://user-images.githubusercontent.com/1711649/235554451-6ef759da-30d9-4274-90e2-fa1f08434733.png)