Skip to content

Instantly share code, notes, and snippets.

@foxwill
foxwill / OAUTH - OneLogin - CreateUser.py
Last active July 12, 2020 20:51
Create a user in the OneLogin OAUTH Api
import onelogin
# specify client_id, client_secret, and shard (us or eu)
creds = {'client_id':'',
'client_secret':'',
'shard':'US'}
token = onelogin.Token(**creds)
# Create the user object with the token created
user = onelogin.User(token)