Body: <p>creating using standalone php script, </p>
  
  <p><a href="http://prntscr.com/n281zd" rel="nofollow noreferrer">http://prntscr.com/n281zd</a></p>
  
  <p>get bellow error</p>
  
  <p><a href="http://prntscr.com/n28279" rel="nofollow noreferrer">http://prntscr.com/n28279</a></p>
  
  <p>Using cv cli, have same error too</p>
  
  <blockquote>
    <p>cv api Case.create case_type_id="housing_support" subject="new housing
    object" contact_id=3 </p>
  </blockquote>
  
  <p>but when I pass in the CMS user I have no error and I can create the case with out any problem</p>
  
  <blockquote>
    <p>cv api Case.create case_type_id="housing_support" subject="new housing
    object" contact_id=3 --user=admin</p>
  </blockquote>
  
  <p>So the question is how to do the equivalent of --user=admin when using a php standalone script for joomla (<a href="https://docs.civicrm.org/dev/en/latest/framework/bootstrap/#joomla" rel="nofollow noreferrer">https://docs.civicrm.org/dev/en/latest/framework/bootstrap/#joomla</a>).</p>
  
  <p>Any body ever have this issues  and solve ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-24T15:23:16.913Z
Comments.Text: Hi, Based on your other question I'm just going to edit your question to make it clearer what you're asking, if that's ok.
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-03-24T15:31:38.557Z
Comments.Text: No problem Demerit. I have some confusion here to arrange the question. Please goon.
Comments.UserDisplayName: adi kusdianto
Tags: <joomla><civicase>
Title: create civi case using standalone script
ThreadText: # create civi case using standalone script
  
  (Asked by: username_0 on 2019-03-24)
  
  creating using standalone php script,
  
  <http://prntscr.com/n281zd>
  
  get bellow error
  
  <http://prntscr.com/n28279>
  
  Using cv cli, have same error too
  
  > cv api Case.create case\_type\_id="housing\_support" subject="new housing
  > object" contact\_id=3
  
  but when I pass in the CMS user I have no error and I can create the case with out any problem
  
  > cv api Case.create case\_type\_id="housing\_support" subject="new housing
  > object" contact\_id=3 --user=admin
  
  So the question is how to do the equivalent of --user=admin when using a php standalone script for joomla (<https://docs.civicrm.org/dev/en/latest/framework/bootstrap/#joomla>).
  
  Any body ever have this issues and solve ?
  
  **Tags:** joomla, civicase
  
  > **Comments:**
  > **username_1**: Hi, Based on your other question I'm just going to edit your question to make it clearer what you're asking, if that's ok.  
  > **username_0**: No problem username_1. I have some confusion here to arrange the question. Please goon.  
  
  ---
  
  ## 0 answers
  
  