<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hi Sean,<br></div><div><br></div><div>I'm glad that it worked, this is one of changes with midPoint 3.7 (but only if you use standalone deployment; deployment using Tomcat is still the same).<br></div><div><br></div><div>Ivan<br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Sean R Penndorf" <srpenn@us.ibm.com><br><b>To: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br><b>Sent: </b>Tuesday, February 27, 2018 4:52:52 PM<br><b>Subject: </b>Re: [midPoint] REST API -- gettng started<br><div><br></div><span style=" font-size:10pt;font-family:sans-serif">Ivan,</span><br><div><br></div><span style=" font-size:10pt;font-family:sans-serif">Removing /midpoint/
 from the URL worked for me.</span><br><span style=" font-size:10pt;font-family:sans-serif">Thank you very
much!!!</span><br><div><br></div><span style=" font-size:10pt;color:#808080;font-family:Arial">------------------</span><br><span style=" font-size:12pt;font-family:Arial"><b>Sean Penndorf</b></span><br><span style=" font-size:10pt;color:#808080;font-family:Arial">SaaS
Operational Services (SOS) - ID Management</span><br><span style=" font-size:10pt;color:#808080;font-family:Arial">IBM Cloud</span><br><span style=" font-size:10pt;color:#000080;font-family:Arial">srpenn@us.ibm.com</span><br><span style=" font-size:10pt;color:#808080;font-family:Arial">Office:
248-552-4791   TL  623-9966</span><br><div><br></div><br><div><br></div><br><div><br></div><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">From:
       </span><span style=" font-size:9pt;font-family:sans-serif">Ivan
Noris <Ivan.Noris@evolveum.com></span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">To:
       </span><span style=" font-size:9pt;font-family:sans-serif">midPoint
General Discussion <midpoint@lists.evolveum.com></span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Date:
       </span><span style=" font-size:9pt;font-family:sans-serif">02/27/2018
06:52 AM</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Subject:
       </span><span style=" font-size:9pt;font-family:sans-serif">Re:
[midPoint] REST API -- gettng started</span><br><span style=" font-size:9pt;color:#5f5f5f;font-family:sans-serif">Sent
by:        </span><span style=" font-size:9pt;font-family:sans-serif">"midPoint"
<midpoint-bounces@lists.evolveum.com></span><br><hr noshade=""><br><div><br></div><br><span style=" font-size:12pt;font-family:Roman">Hi David,</span><br><div><br></div><span style=" font-size:12pt;font-family:Roman">are you using midpoint
as standalone server or deployed in Tomcat?</span><br><div><br></div><span style=" font-size:12pt;font-family:Roman">If you use midPoint
as standalone server (possible since 3.7), the /midpoint should be removed
from URL, as midPoint uses empty context. I.e. </span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=misoJuEBOMomulKSYHqNzWCVKC9DZ8Pyd1w4m0C1REQ&e=" target="_blank"><span style=" font-size:12pt;color:blue;font-family:Roman"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://localhost:8080/
or http://localhost:8080/ws/rest/......</span></span></a><br><div><br></div><span style=" font-size:12pt;font-family:Roman">Best regards,</span><br><span style=" font-size:12pt;font-family:Roman">Ivan</span><br><div><br></div><hr><br><span style=" font-size:12pt;font-family:Arial"><b>From: </b>"David
Westbrook" <david.westbrook@catapultlearning.com><b><br>To: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><b><br>Sent: </b>Monday, February 26, 2018 9:33:45 PM<b><br>Subject: </b>Re: [midPoint] REST API -- gettng started</span><br><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">Having
the same problem with both the post-3.7-fixes branch and the demo site.</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">Demo
site:</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
 curl -q --user administrator:5ecr3t -H "Content-Type: application/xml"
</span><a href="https://demo.evolveum.com/midpoint/ws/rest/orgs" target="_blank"><span style=" font-size:11pt;font-family:Calibri">https://demo.evolveum.com/midpoint/ws/rest/orgs</span></a><span style=" font-size:11pt;font-family:Calibri">--data @org1.xml</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">And
against a fresh build/install of post-3.7-fixes:</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">curl
-q --user administrator:5ecr3t -H "Content-Type: application/xml"
</span><a href="http://localhost:8080/midpoint/ws/rest/orgs" target="_blank"><span style=" font-size:11pt;font-family:Calibri">http://localhost:8080/midpoint/ws/rest/orgs</span></a><span style=" font-size:11pt;font-family:Calibri">--data @org0.xml</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">Both
get HTML page of “forbidden” / “You don’t have rights…” message.</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
              <div class="error-page"></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
                     
<h2 class="headline text-red">403</h2></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
                     
<div class="error-content"></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
                     
        <h3></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
                     
                <i class="fa
fa-warning text-red"></i></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
                     
                <span>Forbidden</span></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
                     
        </h3></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
                     
        <p></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
                     
                <div>You
don&#039;t have rights to see the required page, if necessary please
contact system administrator.</div></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
                     
        </p></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">Here’s
the “org0.xml” I am using:</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"><org
oid="c74a7d86-7798-11e2-964e-100000000100"></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
  <name>F0000</name></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
  <description>Famous workshop of Leonardo da Vinci</description></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
  <displayName>Leonardo's Workshop</displayName></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
  <identifier>0000</identifier></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
  <orgType>functional</orgType></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
  <costCenter>CC000</costCenter></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> 
  <locality>Florence</locality></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"></org></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">Thanks!</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">--david</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Calibri">David
Westbrook</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Calibri">Sr
Application Developer</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Calibri">Catapult
Learning, LLC</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Calibri">(803)-262-4010</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Calibri">david.westbrook@catapultlearning.com</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"><b>From:</b>midPoint [</span><a href="mailto:midpoint-bounces@lists.evolveum.com" target="_blank"><span style=" font-size:11pt;font-family:Calibri">mailto:midpoint-bounces@lists.evolveum.com</span></a><span style=" font-size:11pt;font-family:Calibri">]
<b>On Behalf Of </b>Pavol Mederly<b><br>Sent:</b> Monday, February 26, 2018 2:30 PM<b><br>To:</b> midpoint@lists.evolveum.com<b><br>Subject:</b> Re: [midPoint] REST API -- gettng started</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><br><span style=" font-size:12pt;font-family:Arial">I am quite surprised.
I frequently do things using REST, on a clean midPoint repository, without
any specific settings. Just e.g. uploading files from Eclipse plugin (which
uses REST do to that).</span><br><span style=" font-size:12pt;font-family:Arial">I use branch post-3.7-fixes
(i.e. not the plain 3.7), though.</span><br><span style=" font-size:12pt;font-family:Arial">You could try this
branch, if you have a minute to spare.</span><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Courier New">Pavol
Mederly</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Courier New">Software
developer</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Courier New">evolveum.com</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri">On
26.02.2018 19:36, Sean R Penndorf wrote:</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Arial">I
also get the same behavior with midpoint 3.7.</span><span style=" font-size:11pt;font-family:Calibri"><br></span><span style=" font-size:10pt;font-family:Arial"><br>I've created a role and assigned it to the administrator user and an user
I use for testing.  It has not helped.</span><span style=" font-size:11pt;font-family:Calibri"><br></span><span style=" font-size:10pt;font-family:Arial"><br><role xmlns="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_public_common_common-2D3&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=ZtDaLyfyx3DY-EmHv3Yh8ZFRV7sdxQ8w3oQw6ji6l_k&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://midpoint.evolveum.com/xml/ns/public/common/common-3</span></span></a><span style=" font-size:10pt;font-family:Arial">"<br>      xmlns:q="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__prism.evolveum.com_xml_ns_public_query-2D3&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=d4Rxl-6ZDKdIl46XlN9PoKMteBU4Qk38S0w2hSrOis0&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://prism.evolveum.com/xml/ns/public/query-3</span></span></a><span style=" font-size:10pt;font-family:Arial">"<br>      xmlns:c="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_public_common_common-2D3&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=ZtDaLyfyx3DY-EmHv3Yh8ZFRV7sdxQ8w3oQw6ji6l_k&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://midpoint.evolveum.com/xml/ns/public/common/common-3</span></span></a><span style=" font-size:10pt;font-family:Arial">"<br>      xmlns:t="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__prism.evolveum.com_xml_ns_public_types-2D3&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=u3_ap44_SOgyGn-qX7g6FR-pEV64Yyw61p9uYOi_Z6I&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://prism.evolveum.com/xml/ns/public/types-3</span></span></a><span style=" font-size:10pt;font-family:Arial">"<br>      xmlns:org="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_public_common_org-2D3&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=zjntvuC3PfQkXDPeXsrtLs3Wm5HDn_kLc0D1R3HypdU&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://midpoint.evolveum.com/xml/ns/public/common/org-3</span></span></a><span style=" font-size:10pt;font-family:Arial">"<br>      xmlns:icfs="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_public_connector_icf-2D1_resource-2Dschema-2D3&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=QdpOTOAYqTm_k2qt7o1PtqN1ELMg0HAfWa9imLJe3ck&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3</span></span></a><span style=" font-size:10pt;font-family:Arial">"<br>      xmlns:ri="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_public_resource_instance-2D3&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=huns5EyjAMUWtuI6-Xt7vkyRdK-_qGzY90epYSv4hrA&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</span></span></a><span style=" font-size:10pt;font-family:Arial">"<br>      oid="82691976-2c42-42c4-9e8e-99f133a36e53"<br>      version="6"><br>   <name>REST Access</name><br>   <lifecycleState>active</lifecycleState><br>   <activation><br>      <effectiveStatus>enabled</effectiveStatus><br>      <enableTimestamp>2018-02-23T15:54:18.310Z</enableTimestamp><br>   </activation><br>   <iteration>0</iteration><br>   <iterationToken/><br>   <authorization id="1"><br>      <action></span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_public_security_authorization-2Drest-2D3-23all&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=pg8N5pjalfNzvwHJjXoACuZT4s0gFY2aV7X_Fesr3IM&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://midpoint.evolveum.com/xml/ns/public/security/authorization-rest-3#all</span></span></a><span style=" font-size:10pt;font-family:Arial"></action><br>      <action></span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_public_security_authorization-2Dws-2D3-23all&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=T2XEOA1TB_NCcyaOY7Zle_bgj0nj1-85AmAxQq2c29E&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://midpoint.evolveum.com/xml/ns/public/security/authorization-ws-3#all</span></span></a><span style=" font-size:10pt;font-family:Arial"></action><br>      <action></span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_public_security_authorization-2Dmodel-2D3-23read&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=uHV6lPQzhIUKGKPT0ngWNuoOCwCxQrEJ3JCIE0o6-ao&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://midpoint.evolveum.com/xml/ns/public/security/authorization-model-3#read</span></span></a><span style=" font-size:10pt;font-family:Arial"></action><br>      <phase>execution</phase><br>   </authorization><br>   <requestable>false</requestable><br>   <delegable>false</delegable><br>   <idempotence>none</idempotence><br>   <roleType>Entitlement</roleType><br></role></span><span style=" font-size:11pt;font-family:Calibri"><br></span></p><div><br></div><span style=" font-size:10pt;font-family:Arial"><br>What does it take to get REST to work?</span><span style=" font-size:11pt;font-family:Calibri"><br></span><span style=" font-size:10pt;color:#808080;font-family:Arial"><br>------------------</span><span style=" font-size:12pt;font-family:Arial"><b><br>Sean Penndorf</b></span><span style=" font-size:10pt;color:#808080;font-family:Arial"><br>SaaS Operational Services (SOS) - ID Management<br>IBM Cloud</span><span style=" font-size:11pt;color:blue;font-family:Calibri"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;"><br></span></span><a href="mailto:srpenn@us.ibm.com" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">srpenn@us.ibm.com</span></span></a><span style=" font-size:10pt;color:#808080;font-family:Arial"><br>Office: 248-552-4791   TL  623-9966</span><span style=" font-size:11pt;font-family:Calibri"><br><div><br></div><br><div><br></div><br></span><span style=" font-size:9pt;color:#5f5f5f;font-family:Arial"><br>From:        </span><span style=" font-size:9pt;font-family:Arial">David
Westbrook </span><a href="mailto:david.westbrook@catapultlearning.com" target="_blank"><span style=" font-size:9pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;"><david.westbrook@catapultlearning.com></span></span></a><span style=" font-size:9pt;color:#5f5f5f;font-family:Arial"><br>To:        </span><a href="mailto:midpoint@lists.evolveum.com" target="_blank"><span style=" font-size:9pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">"midpoint@lists.evolveum.com"</span></span></a><span style=" font-size:9pt;font-family:Arial"></span><a href="mailto:midpoint@lists.evolveum.com" target="_blank"><span style=" font-size:9pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;"><midpoint@lists.evolveum.com></span></span></a><span style=" font-size:9pt;color:#5f5f5f;font-family:Arial"><br>Date:        </span><span style=" font-size:9pt;font-family:Arial">02/25/2018
11:39 AM</span><span style=" font-size:9pt;color:#5f5f5f;font-family:Arial"><br>Subject:        </span><span style=" font-size:9pt;font-family:Arial">[midPoint]
REST API -- gettng started</span><span style=" font-size:9pt;color:#5f5f5f;font-family:Arial"><br>Sent by:        </span><span style=" font-size:9pt;font-family:Arial">"midPoint"
</span><a href="mailto:midpoint-bounces@lists.evolveum.com" target="_blank"><span style=" font-size:9pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;"><midpoint-bounces@lists.evolveum.com></span></span></a><p></p><div align="center"><hr noshade=""></div><p style="margin-top:0px;margin-Bottom:240px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">I’m
having trouble getting started with the REST API (midpoint v3.7) … Following
the examples in the docs:</span></p><p style="margin-top:0px;margin-Bottom:0px"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__wiki.evolveum.com_display_midPoint_REST-2BAPI&d=DwMFAg&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=1Sm7c9Zj9niaR9DzD9MKb20cH2sdY_ARkufN0cdauzE&s=zELK9TvC1uVP1zuUYhUlHGxYmhAODqS64WTB7nCkepA&e=" target="_blank"><span style=" font-size:12pt;color:#0082bf;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">https://wiki.evolveum.com/display/midPoint/REST+API</span></span></a><br data-mce-bogus="1"></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">I’m
either getting nothing (e.g. “Find owner of shadow” example) or 403 Forbidden
(e.g. “Create or Update Object”).</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">I’m
using the default administrator account/password, which is a superuser
role.</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">What
configuration/access settings should I check?   Nothing appears in
var/log/midpoint.log  for either of these attempts.</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">curl
--user administrator:5ecr3t -X GET </span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_midpoint_ws_rest_shadows_8e605d0e-2Da8a4-2D48ef-2Da3ce-2D1941df449bc4_owner&d=DwMFAg&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=1Sm7c9Zj9niaR9DzD9MKb20cH2sdY_ARkufN0cdauzE&s=Ypy7M0Vfvx1YLyPMAhHN214OguXp7gprhjpATmJS76w&e=" target="_blank"><span style=" font-size:12pt;color:#0082bf;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://localhost:8080/midpoint/ws/rest/shadows/8e605d0e-a8a4-48ef-a3ce-1941df449bc4/owner</span></span></a><span style=" font-size:12pt;font-family:Arial"># (that’s one of our account UID’s)</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">curl
-q \</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
--user administrator:5ecr3t \</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
-H "Content-Type: application/xml" \</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8080_midpoint_ws_rest_orgs&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=E1snNTySBBfIxVVzye01HCUsH25dakbM9CiC8v24fH8&e=" target="_blank"><span style=" font-size:12pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://localhost:8080/midpoint/ws/rest/orgs</span></span></a><span style=" font-size:12pt;font-family:Arial">\</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
--data @org1.xml</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"><org
oid="c74a7d86-7798-11e2-964e-100000000101"></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
      <name>F0100</name></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
      <description>Fine arts and stuff</description></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
      <parentOrgRef oid="c74a7d86-7798-11e2-964e-100000000100"
type="c:OrgType"/></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
      <displayName>Department of Arts</displayName></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
      <identifier>0100</identifier></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
      <orgType>functional</orgType></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
      <costCenter>CC100</costCenter></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
      <locality>Florence</locality></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> 
  </org></span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">Thanks!</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial">--david</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Arial">David
Westbrook</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Arial">Sr
Application Developer</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Arial">Catapult
Learning, LLC</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Arial">(803)-262-4010</span></p><p style="margin-top:0px;margin-Bottom:0px"><a href="mailto:david.westbrook@catapultlearning.com" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Arial"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">david.westbrook@catapultlearning.com</span></span></a><br data-mce-bogus="1"></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:12pt;font-family:Arial"> </span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Courier New"><br>_______________________________________________<br>midPoint mailing list</span><span style=" font-size:11pt;color:blue;font-family:Calibri"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;"><br></span></span><a href="mailto:midPoint@lists.evolveum.com" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Courier New"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">midPoint@lists.evolveum.com</span></span></a><span style=" font-size:11pt;color:blue;font-family:Calibri"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;"><br></span></span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.evolveum.com_mailman_listinfo_midpoint&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=1Sm7c9Zj9niaR9DzD9MKb20cH2sdY_ARkufN0cdauzE&s=X15-bP25d26Umj4XUCSmMwg7mqRzjn2XgIHVbn3OS3A&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Courier New"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.evolveum.com_mailman_listinfo_midpoint&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=1Sm7c9Zj9niaR9DzD9MKb20cH2sdY_ARkufN0cdauzE&s=X15-bP25d26Umj4XUCSmMwg7mqRzjn2XgIHVbn3OS3A&e=</span></span></a><span style=" font-size:11pt;font-family:Calibri"><br></span></p><div><br></div><br><div><br></div><br><div><br></div><p></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Courier New">_______________________________________________</span></p><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:10pt;font-family:Courier New">midPoint
mailing list</span></p><br><a href="mailto:midPoint@lists.evolveum.com" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Courier New"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">midPoint@lists.evolveum.com</span></span></a><br><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.evolveum.com_mailman_listinfo_midpoint&d=DwMFaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=xddBnUtg17P7se8xj-ldLLMFhJDljb8iPRiAqx_1zEc&e=" target="_blank"><span style=" font-size:10pt;color:blue;font-family:Courier New"><span data-mce-style="text-decoration: underline;" style="text-decoration: underline;">http://lists.evolveum.com/mailman/listinfo/midpoint</span></span></a><p style="margin-top:0px;margin-Bottom:0px"><span style=" font-size:11pt;font-family:Calibri"> </span></p><br><span style=" font-size:12pt;font-family:Arial"><br>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br></span><a href="http://lists.evolveum.com/mailman/listinfo/midpoint" target="_blank"><span style=" font-size:12pt;font-family:Arial">http://lists.evolveum.com/mailman/listinfo/midpoint</span></a><br><span style=" font-size:12pt;font-family:Roman"><br></span><br><div><br></div><span style=" font-size:12pt;font-family:Roman">-- </span><br><span style=" font-size:12pt;font-family:Roman">Ivan Noris<br>Senior Identity Engineer<br>evolveum.com</span><br><tt><span style=" font-size:10pt">_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br></span></tt><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.evolveum.com_mailman_listinfo_midpoint&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=xddBnUtg17P7se8xj-ldLLMFhJDljb8iPRiAqx_1zEc&e=" target="_blank"><tt><span style=" font-size:10pt">https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.evolveum.com_mailman_listinfo_midpoint&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=ekPFeGOCrrpcWZfF4MdJSpYP-Sbvl6dozN1K4t25Gak&s=xddBnUtg17P7se8xj-ldLLMFhJDljb8iPRiAqx_1zEc&e=</span></tt></a><tt><span style=" font-size:10pt"><br></span></tt><br><div><br></div><br>
<br>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>http://lists.evolveum.com/mailman/listinfo/midpoint<br></blockquote><div><br><br></div><div><br></div><div>-- <br></div><div><span name="x"></span>Ivan Noris<br>Senior Identity Engineer<br>evolveum.com<span name="x"></span><br></div></div></body></html>