def getPolicyAuditRawEventDetails(epmserver, epmToken, authType, setid, data, next_cursor="start", limit=1000,
                                  **kwargs):
    """
            Get policy audit raw event details
            This method enables the user to retrieve policy audit raw event details from EPM according
    """

    # build the URL
    if next_cursor is not None:
        myURL = epmserver + "/EPM/API/Sets/" + setid + "/policyaudits/search?nextCursor=" + next_cursor + "&limit=" + str(
            limit)
    else:
        myURL = epmserver + "/EPM/API/Sets/" + setid + "/policyaudits/search?limit=" + str(limit)

    # build the header
    hdr = {}
    hdr['Content-Type'] = 'application/json'
    if authType == 'EPM':
        authToken = 'basic ' + epmToken
        hdr['Authorization'] = authToken
    else:
        authToken = epmToken
        hdr['VFUser'] = authToken

    # make the Rest API call
    urllib3.disable_warnings()
    # this url can take a query, the parameters for the query should be in kwargs
    # check to see if there are any keyword arguments passed in to this function
    # if so, use them

    if len(kwargs) > 0:
        return requests.post(myURL, headers=hdr, params=kwargs, data=data)
    else:
        return requests.post(myURL, headers=hdr, data=data)

            Get policy audit raw event details
            This method enables the user to retrieve policy audit raw event details from EPM according
    
Solutions/CyberArkEPM/DataConnectors/CyberArkEPMSentinelConnector/pyepm.py