def attach_user(context, id, user_id):
    """attach_user(context, id, user_id)

    Attach a user to a remoteci.

    >>> dcictl remoteci-attach-user [OPTIONS]

    :param string id: ID of the remoteci to attach the user to [required]
    :param string user_id: ID of the user to attach [required]
    """
    result = remoteci.add_user(context, id=id,
                               user_id=user_id)
    utils.format_output(result, context.format, ['remoteci_id', 'user_id'])