<div dir="ltr"><br><p>I create a website with php-opencloud/openstack and i want to list user id and name for demo user, and when i use :</p> <pre class=""><code><span class="">foreach</span><span class=""> </span><span class="">(</span><span class="">$identity</span><span class="">-></span><span class="">listUsers</span><span class="">()</span><span class=""> </span><span class="">as</span><span class=""> $user</span><span class="">)</span><span class=""> </span><span class="">{}</span></code></pre> <p>that give me error 403 forbidden.</p> <p>even if my authentication is configured for the demo user:</p> <pre class=""><code><span class="">$openstack </span><span class="">=</span><span class=""> </span><span class="">new</span><span class=""> </span><span class="">OpenStack</span><span class="">\OpenStack</span><span class="">([</span><span class="">
</span><span class="">'authUrl'</span><span class=""> </span><span class="">=></span><span class=""> </span><span class="">'<a href="http://xx.xx.xx.xx:5000/v3">http://xx.xx.xx.xx:5000/v3</a>'</span><span class="">,</span><span class="">
</span><span class="">'region'</span><span class="">  </span><span class="">=></span><span class=""> </span><span class="">'RegionOne'</span><span class="">,</span><span class="">
</span><span class="">'user'</span><span class="">    </span><span class="">=></span><span class=""> </span><span class="">[</span><span class="">
    </span><span class="">'id'</span><span class=""> </span><span class="">=></span><span class=""> </span><span class="">'{user_id_demo}'</span><span class="">,</span><span class="">
    </span><span class="">'password'</span><span class=""> </span><span class="">=></span><span class=""> </span><span class="">'{password_demo}'</span><span class="">,</span><span class="">
</span><span class="">],</span><span class="">
</span><span class="">'scope'</span><span class="">   </span><span class="">=></span><span class=""> </span><span class="">[</span><span class="">'project'</span><span class=""> </span><span class="">=></span><span class=""> </span><span class="">[</span><span class="">'id'</span><span class=""> </span><span class="">=></span><span class=""> </span><span class="">'{ptojet_Id_demo}'</span><span class="">]],</span></code></pre> <p>]);</p> <p>someone can help please ?</p></div>