@@ -39,26 +39,31 @@ In order to do so, we are going to setup a new role ``accounting`` a new user
3939 # For each of the projects, add the user with the accounting role
4040 openstack role add --user accounting --project <project> accounting
4141
42- Moreover, this user needs access to Keystone so as to extract the users
42+ Policy modifications
43+ --------------------
44+ The accounting user needs access to Keystone so as to extract the users
4345information. In this case, we can can grant the user just the rights for
44- listing the users adding the appropriate rules in your
45- ``/etc/keystone/policy.json `` as follows. Replace the line::
46+ listing the users adding the appropriate rules in your policy configuration.
47+ The modifications in the policy depend on the Keystone version, please ensure
48+ that you are applying the correct changes.
4649
47- "identity:list_users": "rule:admin_required",
50+ Keystone Versions from Ussuri onwards (version >= 17.0.0)
51+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4852
49- with::
53+ You need to modify the ``identity:list_users `` policy in either your
54+ ``/etc/keystone/policy.json `` or ``/etc/keystone/policy-yaml ``, contaning the
55+ following policy rules::
5056
51- "identity:list_users": "rule:admin_required or role:accounting",
57+ "identity:list_users": "(role:admin) or ( role:reader and domain_id:%(target.domain_id)s) or (role: accounting)"
5258
53- Recent Keystone versions leverage a `` /etc/keystone/policy-yaml `` file, if this
54- is your case, substitute the line::
59+ Keystone Versions from until Train (version < 17.0.0)
60+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5561
56- "identity:list_users": "rule:admin_required"
57-
58- with::
59-
60- "identity:list_users": "rule:admin_required or role:accounting"
62+ You need to modify the ``identity:list_users `` policy in either your
63+ ``/etc/keystone/policy.json `` or ``/etc/keystone/policy-yaml ``, contaning the
64+ following policy rules::
6165
66+ "identity:list_users": "rule:admin_required or role:accounting"
6267
6368Publishing benchmark information for OpenStack flavors (optional)
6469-----------------------------------------------------------------
0 commit comments