Files
oam/knowledge base/jmespath.md
2022-08-03 13:57:06 +02:00

22 lines
432 B
Markdown

# JMESPath
## TL;DR
```sh
# Filter elements in a list.
az devops user list \
--org https://dv.azure.com/organizationName \
--query "\
items[? \
startsWith(user.principalName, 'yourNameHere') && \
\! contains(accessLevel.licenseDisplayName, 'Test plans') \
].user.displayName"
```
## Further readings
- [Website]
[specifications]: https://jmespath.org/specification.html
[website]: https://jmespath.org/