'The logic of the command.'

def handle(self, *args, **options):

    username = 'populate_creators_command'
    email = 'grant+creator+access@edx.org'
    try:
        admin = User.objects.create_user(username, email, 'foo')
        admin.is_staff = True
        admin.save()
    except IntegrityError:
        admin = User.objects.get(username=username, email=email)
    for user in get_users_with_role(CourseInstructorRole.ROLE):
        add_user_with_status_granted(admin, user)
    for user in get_users_with_role(CourseStaffRole.ROLE):
        add_user_with_status_unrequested(user)
    admin.delete()
