-
-
Save nmcspadden/8c904b6209bf6ec07f4f9ceb1b6e0e88 to your computer and use it in GitHub Desktop.
adobe_tools - Does the user exist? (Public)
This file contains 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
def user_exists(user): | |
"""Does the user exist already as a federated ID?""" | |
(config_data, jwt_token, access_token) = generate_config() | |
result = _user_data( | |
config_data, | |
access_token, | |
user, | |
) | |
if result.get('type') == 'federatedID': | |
return True | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment