<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Require the commands / script or API for EPM in Endpoint Privilege Manager (EPM) Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/require-the-commands-script-or-api-for-epm/m-p/1397364#M5651</link>
    <description>&lt;P&gt;EPM API is documented here: &lt;A alt="https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/API%20Commands.htm" href="https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/API%20Commands.htm" target="_blank"&gt;https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/API%20Commands.htm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2020 14:29:31 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2020-02-04T14:29:31Z</dc:date>
    <item>
      <title>Require the commands / script or API for EPM</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/require-the-commands-script-or-api-for-epm/m-p/1397362#M5649</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I would require the commands / script or API as below, please support.&lt;/P&gt;&lt;P&gt;1. Login at EPM console with AD credentials&lt;/P&gt;&lt;P&gt;2. identify and enter in the set than search the hostname and move that hostname in a&amp;nbsp;specified group.&lt;/P&gt;&lt;P&gt;3. publish the result and logout or disconnect from the session.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 10:06:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/require-the-commands-script-or-api-for-epm/m-p/1397362#M5649</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2019-10-24T10:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Require the commands / script or API for EPM</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/require-the-commands-script-or-api-for-epm/m-p/1397363#M5650</link>
      <description>&lt;P&gt;@Lirendra Kumar​&amp;nbsp;Did you manage to get it?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 12:59:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/require-the-commands-script-or-api-for-epm/m-p/1397363#M5650</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-02-04T12:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Require the commands / script or API for EPM</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/require-the-commands-script-or-api-for-epm/m-p/1397364#M5651</link>
      <description>&lt;P&gt;EPM API is documented here: &lt;A alt="https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/API%20Commands.htm" href="https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/API%20Commands.htm" target="_blank"&gt;https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/Latest/en/Content/WebServices/API%20Commands.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 14:29:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/require-the-commands-script-or-api-for-epm/m-p/1397364#M5651</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-02-04T14:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Require the commands / script or API for EPM</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/require-the-commands-script-or-api-for-epm/m-p/1397365#M5652</link>
      <description>&lt;P&gt;Thanks..But it is not helping to authenticate with windows credentials.. where do i give the windows credentials with domain name... ​&lt;/P&gt;&lt;P&gt;When i try without credentials, it is not asking for credentials and throws authentication failure message..​&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 14:38:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/require-the-commands-script-or-api-for-epm/m-p/1397365#M5652</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-02-04T14:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Require the commands / script or API for EPM</title>
      <link>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/require-the-commands-script-or-api-for-epm/m-p/1397366#M5653</link>
      <description>&lt;P&gt;Im also facing similar problem. However I manage to login to epm using domain user credentials:&lt;/P&gt;&lt;CODE&gt;import json
import base64
import urllib.parse
import requests
from requests_ntlm import HttpNtlmAuth
&amp;nbsp;
class epmlib:
    def __init__(self, domain, username, password):
        self.domain = domain
        self.username = username
        self.password = password
        self.token = ''
        self.s = requests.session()
     
    def postLogon(self):
        url = "https://" + self.domain + "/EPM/API/Auth/Windows/Logon" # https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/11.2/en/Content/WebServices/ServerAuthentication.htm
        task = { 'Username': self.username, 'Password': self.password, 'ApplicationID': 'AppName' }
        headers = {'Content-type': 'application/json'}
        r = self.s.post( url, auth=HttpNtlmAuth(self.username, self.password), data=json.dumps(task), headers=headers, verify=False )
        if r.status_code == 200:
            x = r.json()
            self.token = x['EPMAuthenticationResult']
        else:
            print('Error code: ' + str(r.status_code))&lt;/CODE&gt;&lt;P&gt;After executing postLogon im able to get version number:&lt;/P&gt;&lt;CODE&gt;def getEPMVersion(self):
        url = "https://" + self.domain + "/EPM/API/Server/Version" # https://docs.cyberark.com/Product-Doc/OnlineHelp/EPM/11.2/en/Content/WebServices/GetEPMVersion.htm
        #headers = {'Authorization': 'basic ' + self.token}
        r = self.s.get( url, verify=False )
        if r.status_code == 200:
            x = r.json()
            print(x['Version'])
        else:
            print('Error code: ' + str(r.status_code))&lt;/CODE&gt;&lt;P&gt;But im not able to execute some gets ex. Get Sets as it require authorization token to be added to header. According to documentation EPMAuthenticationResult is the right token but id doesn't work... Its not even in base64 format. So I stuck at that point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 07:04:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/endpoint-privilege-manager-epm/require-the-commands-script-or-api-for-epm/m-p/1397366#M5653</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-03-06T07:04:33Z</dc:date>
    </item>
  </channel>
</rss>

