https://github.com/ventx/auth0-check-email-and-add-to-role-python
Auth0 Python code to check if E-Mail exists in Auth0 and if yes, get user_id and add to Auth0 Role.
https://github.com/ventx/auth0-check-email-and-add-to-role-python
auth0 auth0-python python python3
Last synced: 3 months ago
JSON representation
Auth0 Python code to check if E-Mail exists in Auth0 and if yes, get user_id and add to Auth0 Role.
- Host: GitHub
- URL: https://github.com/ventx/auth0-check-email-and-add-to-role-python
- Owner: ventx
- License: gpl-3.0
- Created: 2019-09-27T14:06:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-27T14:26:08.000Z (over 5 years ago)
- Last Synced: 2024-12-25T16:12:36.713Z (4 months ago)
- Topics: auth0, auth0-python, python, python3
- Language: Python
- Size: 16.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# auth0-check-email-and-add-to-role-python
Auth0 Python code to check if E-Mail exists in Auth0 and if yes, get user_id and add to Auth0 Role.This little script just reads in a file with email addresses (file should be one email address per line), checks whether the email address is associated with an Auth0 user and then adds this user to a role (it gets role_id by a provided role name).
It prints how many users got added successfully and how many were not found - the latter will be written to a file on disk. Another file will be created for all the user_ids found for the email addresses.
## Requirements
* Python 3.5
* pip3: [auth0-python](https://pypi.org/project/auth0-python/)