Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Created October 19, 2016 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmcspadden/8c904b6209bf6ec07f4f9ceb1b6e0e88 to your computer and use it in GitHub Desktop.
Save nmcspadden/8c904b6209bf6ec07f4f9ceb1b6e0e88 to your computer and use it in GitHub Desktop.
adobe_tools - Does the user exist? (Public)
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