def get_user_id(slackc, user_name):
    """ Get user ID from name """
    api_call = slackc.api_call('users.list')
    if api_call.get('ok'):
        users = api_call.get('members')
        for user in users:
            if 'name' in user and user.get('name') == user_name:
                return user.get('id')

    return None