list user demo

asked 2016-08-18 04:04:04 -0500

Hamzoz gravatar image

updated 2016-08-18 15:09:32 -0500

rbowen gravatar image

I create a website with php-opencloud/openstack and i want to list user id and name for demo user, and when i use :

foreach ($identity->listUsers() as $user) {}

that give me error 403 forbidden.

even if my authentication is configured for the demo user:

$openstack = new OpenStack\OpenStack([
'authUrl' => 'http://xx.xx.xx.xx:5000/v3',
'region'  => 'RegionOne',
'user'    => [
    'id' => '{user_id_demo}',
    'password' => '{password_demo}',
],
'scope'   => ['project' => ['id' => '{ptojet_Id_demo}']],
]);

someone can help please ?

edit retag flag offensive close merge delete