Link: https://openstack.nimeyo.com/86042/?show=86042#q86042<br />
From: imocha <Imocha@gmail.com><br />
<br />
<p>How to list all the servers owned by the user across projects. I tried to create token scoped to a project and able to list the servers on that project using the compute end point <a rel="nofollow" href="http://localhost:8774/v2.1/servers">http://localhost:8774/v2.1/servers</a></p>
<p>However, I wanted to get all the list of servers for all the projects a user created. Initially I wanted to change the policy.json under nova but could not get it working. The rule in the policy is:<br>
"is<em>admin:True or project</em>id:%(project_id)s"</p>
<p>is there a way to get all the servers for the user in the domain by modifying the above rule.</p>
<p>Also, how to access the attributes of the token passed. I looked at the content of the token in the token table in keystone database. If you look at the token "extra" field, it is a json file containing the token details. Can we access this token information from the Policy.json so that we can write appropriate rule to evaluate? </p>
<p>I tried to use the syntax like "token.domain.id" but does not work.</p>