Example #1
0
def sync_edm(context, refresh=False):
    """
    Sync the users from the EDM onto the local Hudson
    """
    from app.modules.users.models import User

    User.edm_sync_all(refresh=refresh)
Example #2
0
def initialize_users_from_edm(context, edm_authentication=None):
    from app.modules.users.models import User

    User.edm_sync_all()

    context.invoke_execute(context, 'app.consistency.user-staff-permissions')