Microsoft 365: Privileged User w/ License
submitted
D
Devon Chorney
Best Practices are for admin accounts to not contain a license unless required. This metric outputs Privileged users and what products they are assigned
Users[?Privileged==
Yes
&& Assigned_Products != `].join(
, [join(
, [
, to_string(displayName)]), join(
, [
: `, to_string(Assigned_Products)])]) | sort(@)J
John O Mahony
Updated JMESPath: Users[?Privileged == 'Yes' && length(Assigned_Products) >
0
]| sort_by(@, &displayName)
| [].join('', [to_string(displayName), ': ', to_string(Assigned_Products)])
| join(', ', @)