{{#let (policy/group item.Policies) as |policies|}} {{#let (get policies 'management') as |management|}} {{#if (gt management.length 0)}}
Management
{{#each (get policies 'management') as |item|}} {{item.Name}} {{/each}}
{{/if}} {{/let}} {{#let (get policies 'identities') as |identities|}} {{#if (gt identities.length 0)}}
Identities
{{#each identities as |item|}} {{item.Name}} {{/each}}
{{/if}} {{/let}} {{#if (token/is-legacy item) }}
Rules
Legacy tokens have embedded rules.
{{else}} {{#let (append (get policies 'policies') (or item.Roles (array))) as |policies|}} {{#if (gt policies.length 0)}}
Rules
{{#each policies as |item|}} {{item.Name}} {{/each}}
{{/if}} {{/let}} {{/if}} {{/let}}