Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Created October 19, 2016 03:41
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/9c171630eef78e4a7ae6f08e720af991 to your computer and use it in GitHub Desktop.
Save nmcspadden/9c171630eef78e4a7ae6f08e720af991 to your computer and use it in GitHub Desktop.
adobe_tools - Add/Remove user (Public)
def add_user(email, firstname, lastname, country='US'):
"""Add federated user account."""
(config_data, jwt_token, access_token) = generate_config()
result = _add_federated_user(
config_data,
access_token,
email,
country,
firstname,
lastname,
)
return result
def remove_user(email):
"""Remove user account."""
(config_data, jwt_token, access_token) = generate_config()
result = _remove_user_from_org(
config_data,
access_token,
email,
)
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment