def create_user(session, email, first_name, last_name, admin, role_ids, return_type=None, **kwargs):
    """
    Creates a user of CC.

    :type session: zadarapy.session.Session
    :param session: A valid zadarapy.session.Session object.  Required.

    :type email: str
    :param email: The email of the user used for login
        example: 'qa@zadarastorage.com'.  Required.

    :type first_name: str
    :param first_name: The first name of the user

    :type last_name: str
    :param last_name: The first name of the user

    :type admin: bool
    :param admin: True if the user should be admin

    :type role_ids: array
    :param role_ids: Array of roles, i.e. ["1","3"]

    :type return_type: str
    :param return_type: If this is set to the string 'json', this function
        will return a JSON string.  Otherwise, it will return a Python
        dictionary.  Optional (will return a Python dictionary by default).

    :rtype: dict, str
    :returns: A dictionary or JSON data set as a string depending on
        return_type parameter.
    """
    path = '/api/users.json'
    body_values = {"user": {'email': email, 'firstname': first_name,
                            'lastname': last_name, 'admin': admin, 'role_ids': role_ids}}
    return session.post_api(path=path, body=body_values, secure=False,
                            return_type=return_type, **kwargs)